Bugfixing for newly added code with kargo-clu support
This commit is contained in:
parent
531f611ea3
commit
43b2b5b464
2 changed files with 4 additions and 5 deletions
1
Vagrantfile
vendored
1
Vagrantfile
vendored
|
@ -23,7 +23,6 @@ $box = "nrclark/xenial64-minimal-libvirt"
|
||||||
nodes=""
|
nodes=""
|
||||||
(1..$num_instances).each do |i|
|
(1..$num_instances).each do |i|
|
||||||
ip = "#{$private_subnet}.#{i+10}"
|
ip = "#{$private_subnet}.#{i+10}"
|
||||||
test_vm.vm.network :private_network, :ip => "#{ip}"
|
|
||||||
nodes = "#{nodes}#{ip}\n"
|
nodes = "#{nodes}#{ip}\n"
|
||||||
end
|
end
|
||||||
File.open("nodes", 'w') { |file| file.write(nodes) }
|
File.open("nodes", 'w') { |file| file.write(nodes) }
|
||||||
|
|
|
@ -19,8 +19,8 @@ sudo sh -c 'cd /root/kargo-cli && python setup.py install'
|
||||||
sudo pip install kpm
|
sudo pip install kpm
|
||||||
|
|
||||||
# k8s deploy script and config
|
# k8s deploy script and config
|
||||||
sudo sh -c 'cp -a ~/deploy-k8s.kargo.sh /root/ && chmod 755 /root/deploy-k8s.kargo.sh'
|
sudo sh -c 'cp -a ~vagrant/deploy-k8s.kargo.sh /root/ && chmod 755 /root/deploy-k8s.kargo.sh'
|
||||||
sudo cp -a ~/custom.yaml /root/kargo/custom.yaml
|
sudo cp -a ~vagrant/custom.yaml /root/kargo/custom.yaml
|
||||||
|
|
||||||
# SSH keys and config
|
# SSH keys and config
|
||||||
sudo rm -rf /root/.ssh
|
sudo rm -rf /root/.ssh
|
||||||
|
@ -28,8 +28,8 @@ sudo mv ~vagrant/ssh /root/.ssh
|
||||||
sudo echo -e 'Host 10.210.*\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile=/dev/null' >> /root/.ssh/config
|
sudo echo -e 'Host 10.210.*\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile=/dev/null' >> /root/.ssh/config
|
||||||
sudo chown -R root: /root/.ssh
|
sudo chown -R root: /root/.ssh
|
||||||
|
|
||||||
# Save nodes list
|
# Copy nodes list
|
||||||
sudo cp ~/nodes /root/nodes
|
sudo cp ~vagrant/nodes /root/nodes
|
||||||
|
|
||||||
# README
|
# README
|
||||||
sudo echo 'cd /root/kargo ; ansible-playbook -vvv -i inv/inventory.cfg cluster.yml -u root -f 7' > /root/README
|
sudo echo 'cd /root/kargo ; ansible-playbook -vvv -i inv/inventory.cfg cluster.yml -u root -f 7' > /root/README
|
||||||
|
|
Loading…
Reference in a new issue