This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rke up - config cluster.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for node in 1.2.3.4 1.2.3.4.5; do ssh rancher@$node; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /opt/rke/kubernetes | |
| cp ssl/kube-apiserver.pem .tmp/kube-adm.pem | |
| cp ssl/kube-apiserver.key .tmp/kube-adm.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget http://ip-of-rancher-server:8081/key.sh | |
| chmod +x sshkeys/key.sh | |
| ./key.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat <<EOF > sshkeys/key.sh | |
| #!/bin/bash | |
| mkdir -m 0700 .ssh | |
| wget http://ip-of-rancher-server:8081/id_rsa.pub .ssh/authorized_keys | |
| chmod og-rw .ssh/authorized_keys | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir sshkeys | |
| ssh-keygen -N '' -f sshkeys/id_rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nodes: | |
| - address: 1.2.3.4 | |
| hostname_override: somehost | |
| user: rancher | |
| role: | |
| - controlplane | |
| - etcd | |
| - address: 1.2.3.5 | |
| hostname_override: someotherhost | |
| user: rancher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install Ubuntu Xenial template if it does not exist | |
| - name: Search for Ubuntu 16.04 amd64 template | |
| shell: xe template-list | grep "Ubuntu Xenial Xerus 16.04 (64-bit)" | |
| ignore_errors: True | |
| register: ubuntu_xenial_amd64 | |
| tags: [xenserver,templates] | |
| - name: Find UUID of older template | |
| shell: xe template-list name-label="Ubuntu Trusty Tahr 14.04 (64-bit)" params=uuid --minimal | |
| register: old_template_uuid_ubuntu_xenial_amd64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| web: | |
| image: ansible/awx_web:latest | |
| depends_on: | |
| - rabbitmq | |
| - memcached | |
| - postgres | |
| ports: |
NewerOlder