sylflo.rancher2_ansible
Role Name
This role sets up Rancher 2 (check out rancher.com) on a custom server using Docker. It also installs:
- one cluster (see Role Variables section)
- Cert Manager catalog (visit cert-manager.io)
- Rook (learn more at rook.io)
Requirements
No requirements needed.
Role Variables
- docker_version: "18.03" => The version of Docker you want to install.
- rancher_container_name: "rancher-server" => The name for your Rancher Docker container.
- rancher_domain_name: "your_domain_name" => The domain name for Rancher.
- rancher_url: "https://{{ rancher_domain_name }}" => The URL for the Rancher server.
- rancher_admin_password: "admin_password" => The password you want to set.
- rancher_cluster_name: "cluster_name" => The name for the cluster you are creating.
- rancher_network_provider: "calico" => The network provider you want to use.
- install_rook: true => Set this to true if you want to install Rook.
- rook_version: "0.9.1" => The version of Rook you want to install.
- install_certmanager: true => Set this to true if you want to install Cert Manager.
- cluster_issuer_name: "letsencrypt-staging" => The name of the cluster issuer; should be "letsencrypt-staging" or "letsencrypt-prod."
- letsencrypt_email: "youremail@email.fr" => The email used for Let's Encrypt.
- validate_certs: true => Set to false if you do not want to use SSL.
- rancher_ssl_port: 443 => Change this if you do not want SSL.
- single_node: false => Set to true if you want to install Rancher on a single-node cluster.
Dependencies
No dependencies required.
Example Playbook
- hosts: servers
tasks:
- include_role:
name: '../../rancher2-ansible'
vars:
docker_version: "18.03"
rancher_container_name: "rancher-server"
rancher_domain_name: your_domain_name.fr
rancher_admin_password: "admin_password"
rancher_cluster_name: "cluster_name"
rancher_network_provider: "calico"
install_rook: true
rook_version: "0.9.1"
install_certmanager: true
cluster_issuer_name: "letsencrypt-staging"
letsencrypt_email: "[email protected]"
validate_certs: true
rancher_ssl_port: 443
single_node: false
License
MIT
Author Information
If you have any questions or issues with the project, please open an issue on GitHub. Any pull requests or suggestions for improvements are welcome!
Installa
ansible-galaxy install sylflo.rancher2_ansible
Licenza
mit
Download
86
Proprietario