ceph-rollout/pre-deploy.yml

47 lines
1.8 KiB
YAML

---
- name: deploy all the needed tools for ceph
hosts: all
become: true
gather_facts: true
diff: true
vars_files:
- pass.yaml #encrypted pass for root
vars:
ceph_repo: "http://repo.infra.mts/debian-squid"
ubuntu_repo: "http://repo.infra.mts/ubuntu/"
image_registry: "harbor.infra.mts/ceph"
prometheus_tag: "v3.1.0"
node_exporter_tag: "v1.5.0"
grafana_tag: "9.4.12"
alertmanager_tag: "v0.27.0"
# ntp_server: "ntp.int.nt-com.ru"
first_mon_ip: "10.190.32.78"
# cluster_network: "10.63.0.0/24"
public_network: "10.50.8.0/24"
CEPH_RELEASE: '19.2.0'
initial_dashboard_user: 'admin'
initial_dashboard_password: 'qweqwe'
allow_fqdn_hostname: 'true'
# DNS_address: "10.50.8.51"
tasks:
- name: basic setups
import_tasks:
file: basics.yaml
- name: running ceph bootstrap
pause:
prompt: RUN THIS TO BOOTSTRAP THE CLUSTER "cephadm --image harbor.test.registry.int.nt-com.ru/proxy-quay/ceph/ceph:v19.2 bootstrap --mon-ip {{ first_mon_ip }}
--initial-dashboard-user {{ initial_dashboard_user }} --initial-dashboard-password {{ initial_dashboard_password }}
--apply-spec /root/cluster_spec.yml --config /root/initial-ceph.conf --allow-fqdn-hostname"
when:
- cluster_network is undefined
- name: running ceph bootstrap
pause:
prompt: RUN THIS TO BOOTSTRAP THE CLUSTER "cephadm --image harbor.test.registry.int.nt-com.ru/proxy-quay/ceph/ceph:v19.2 bootstrap --mon-ip {{ first_mon_ip }}
--cluster-network {{ cluster_network }}
--initial-dashboard-user {{ initial_dashboard_user }} --initial-dashboard-password {{ initial_dashboard_password }}
--apply-spec /root/cluster_spec.yml --config /root/initial-ceph.conf --allow-fqdn-hostname"
when:
- cluster_network is defined