Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8e4a821a
Commit
8e4a821a
authored
Feb 09, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20821 from olivierlemasle/fix-dnf-vagrant
Auto commit by PR queue bot
parents
5111983b
0bf3f3ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
provision-master.sh
cluster/vagrant/provision-master.sh
+2
-0
provision-node.sh
cluster/vagrant/provision-node.sh
+2
-0
provision-utils.sh
cluster/vagrant/provision-utils.sh
+11
-0
No files found.
cluster/vagrant/provision-master.sh
View file @
8e4a821a
...
@@ -56,6 +56,8 @@ done
...
@@ -56,6 +56,8 @@ done
echo
"127.0.0.1 localhost"
>>
/etc/hosts
# enables cmds like 'kubectl get pods' on master.
echo
"127.0.0.1 localhost"
>>
/etc/hosts
# enables cmds like 'kubectl get pods' on master.
echo
"
$MASTER_IP
$MASTER_NAME
"
>>
/etc/hosts
echo
"
$MASTER_IP
$MASTER_NAME
"
>>
/etc/hosts
prepare-package-manager
# Configure the master network
# Configure the master network
if
[
"
${
NETWORK_PROVIDER
}
"
!=
"kubenet"
]
;
then
if
[
"
${
NETWORK_PROVIDER
}
"
!=
"kubenet"
]
;
then
provision-network-master
provision-network-master
...
...
cluster/vagrant/provision-node.sh
View file @
8e4a821a
...
@@ -52,6 +52,8 @@ for (( i=0; i<${#NODE_NAMES[@]}; i++)); do
...
@@ -52,6 +52,8 @@ for (( i=0; i<${#NODE_NAMES[@]}; i++)); do
fi
fi
done
done
prepare-package-manager
# Configure network
# Configure network
if
[
"
${
NETWORK_PROVIDER
}
"
!=
"kubenet"
]
;
then
if
[
"
${
NETWORK_PROVIDER
}
"
!=
"kubenet"
]
;
then
provision-network-node
provision-network-node
...
...
cluster/vagrant/provision-utils.sh
View file @
8e4a821a
...
@@ -14,6 +14,17 @@
...
@@ -14,6 +14,17 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
function
prepare-package-manager
()
{
echo
"Prepare package manager"
# Useful if a mirror is broken or slow
echo
"fastestmirror=True"
>>
/etc/dnf/dnf.conf
# In Fedora 23, installed version does not work with Salt
# Cf. https://github.com/saltstack/salt/issues/31001
dnf update
-y
dnf dnf-plugins-core
}
function
write-salt-config
()
{
function
write-salt-config
()
{
local
role
=
"
$1
"
local
role
=
"
$1
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment