From 83212f90848d8e166a8752500e9db0484136c4d3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:20 -0400 Subject: [PATCH] Update default variables based on recent changes --- group_vars/default/base.yml | 17 ++++++++ group_vars/default/pvc.yml | 77 +++++++++++++++++++++++++++++++++++++ group_vars/default/vars.yml | 70 --------------------------------- 3 files changed, 94 insertions(+), 70 deletions(-) create mode 100644 group_vars/default/base.yml create mode 100644 group_vars/default/pvc.yml delete mode 100644 group_vars/default/vars.yml diff --git a/group_vars/default/base.yml b/group_vars/default/base.yml new file mode 100644 index 0000000..92642fe --- /dev/null +++ b/group_vars/default/base.yml @@ -0,0 +1,17 @@ +--- +# Basic information +local_domain: upstream.local +username_ipmi_host: pvc +passwd_ipmi_host: "" # Use pwgen to generate (set in IPMI config) +passwdhash_root: "" # Use pwgen to generate and openssl passwd -1 -salt xyz to hash +# Logrotate +logrotate_keepcount: 7 +logrotate_interval: daily +# Email +username_email_root: root +# Administrative users +admin_users: + - name: "myuser" + uid: 500 + keys: + - "ssh-ed25519 MyKey 2019-06" diff --git a/group_vars/default/pvc.yml b/group_vars/default/pvc.yml new file mode 100644 index 0000000..048a1f9 --- /dev/null +++ b/group_vars/default/pvc.yml @@ -0,0 +1,77 @@ +--- +# Ceph storage +pvc_ceph_storage_secret_uuid: "" # Use uuidgen to generate +# Database +pvc_dns_database_name: "pvcdns" +pvc_dns_database_user: "pvcdns" +pvc_dns_database_password: "" # Use pwgen to generate +pvc_replication_database_user: "replicator" +pvc_replication_database_password: "" # Use pwgen to generate +pvc_superuser_database_user: "postgres" +pvc_superuser_database_password: "" # Use pwgen to generate +# Coordinators +pvc_nodes: + - hostname: "pvchv1" + is_coordinator: yes + node_id: 1 + router_id: "192.168.100.11" + upstream_ip: "192.168.100.11" + upstream_cidr: 24 + cluster_ip: "10.0.0.1" + cluster_cidr: 24 + storage_ip: "10.0.1.1" + storage_cidr: 24 + ipmi_host: "pvchv1-lom.{{ local_domain }}" + ipmi_user: "{{ username_ipmi_host }}" + ipmi_password: "{{ passwd_ipmi_host }}" + - hostname: "pvchv2" + is_coordinator: yes + node_id: 2 + router_id: "192.168.100.12" + upstream_ip: "192.168.100.12" + upstream_cidr: 24 + cluster_ip: "10.0.0.2" + cluster_cidr: 24 + storage_ip: "10.0.1.2" + storage_cidr: 24 + ipmi_host: "pvchv2-lom.{{ local_domain }}" + ipmi_user: "{{ username_ipmi_host }}" + ipmi_password: "{{ passwd_ipmi_host }}" + - hostname: "pvchv3" + is_coordinator: yes + node_id: 3 + router_id: "192.168.100.13" + upstream_ip: "192.168.100.13" + upstream_cidr: 24 + cluster_ip: "10.0.0.3" + cluster_cidr: 24 + storage_ip: "10.0.1.3" + storage_cidr: 24 + ipmi_host: "pvchv3-lom.{{ local_domain }}" + ipmi_user: "{{ username_ipmi_host }}" + ipmi_password: "{{ passwd_ipmi_host }}" +# Networks +pvc_asn: "65500" +pvc_routers: + - "192.168.100.1" +pvc_upstream_device: "enp1s0f0" # Set to your actual NIC device (or bond, vLAN, etc.) +pvc_upstream_mtu: "1500" +pvc_upstream_domain: "{{ local_domain }}" +pvc_upstream_subnet: "192.168.100.0/23" +pvc_upstream_floatingip: "192.168.100.10/23" +pvc_upstream_gatewayip: "192.168.100.1" +pvc_cluster_device: "vlan1001" # Set to your actual NIC device (usually a vLAN) +pvc_cluster_mtu: "1500" +pvc_cluster_domain: "pvc.local" +pvc_cluster_subnet: "10.0.0.0/24" +pvc_cluster_floatingip: "10.0.0.254/24" +pvc_storage_device: "vlan1002" # Set to your actual NIC device (usually a vLAN) +pvc_storage_mtu: "1500" +pvc_storage_domain: "pvc.storage" +pvc_storage_subnet: "10.0.1.0/24" +pvc_storage_floatingip: "10.0.1.254/24" +# Logging +pvc_log_to_file: True +pvc_log_to_stdout: True +pvc_log_keepalives: True +pvc_log_console_lines: 1000 diff --git a/group_vars/default/vars.yml b/group_vars/default/vars.yml deleted file mode 100644 index e7b76ab..0000000 --- a/group_vars/default/vars.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -# Ceph storage -pvc_ceph_storage_secret_uuid: "6e1f4969-f7ea-4be1-9232-e67ce3bfc37e" -pvc_ceph_storage_secret_key: "AQC8y6tWkfUEKxAAI9XKcXlN38Nzbrom899rJw==" -# Database -pvc_dns_database_name: "pvcdns" -pvc_dns_database_user: "pvcdns" -pvc_dns_database_password: "PVCdnsPassw0rd" -pvc_replication_database_user: "replicator" -pvc_replication_database_password: "PVCreplicatorPassw0rd" -pvc_superuser_database_user: "postgres" -pvc_superuser_database_password: "PVCpostgresPassw0rd" -# Coordinators -pvc_nodes: - - hostname: "pvchv1" - is_coordinator: yes - node_id: 1 - router_id: "{{ blsecluster_pvc_clustersubnetsnip }}.1" - cluster_ip: "by-id" - storage_ip: "{{ blsecluster_pvc_storagesubnetsnip }}.25/24" - upstream_ip: "{{ blsecluster_pvc_upstreamsubnetsnip }}.25/24" - ipmi_host: "hv1-lom.{{ blsedomains_mgmtdomain }}" - ipmi_user: "{{ username_ipmi_host }}" - ipmi_password: "{{ passwd_ipmi_host }}" - - hostname: "pvchv2" - is_coordinator: yes - node_id: 2 - router_id: "{{ blsecluster_pvc_clustersubnetsnip }}.2" - cluster_ip: "by-id" - storage_ip: "{{ blsecluster_pvc_storagesubnetsnip }}.26/24" - upstream_ip: "{{ blsecluster_pvc_upstreamsubnetsnip }}.26/24" - ipmi_host: "hv2-lom.{{ blsedomains_mgmtdomain }}" - ipmi_user: "{{ username_ipmi_host }}" - ipmi_password: "{{ passwd_ipmi_host }}" - - hostname: "pvchv3" - is_coordinator: yes - node_id: 3 - router_id: "{{ blsecluster_pvc_clustersubnetsnip }}.3" - cluster_ip: "by-id" - storage_ip: "{{ blsecluster_pvc_storagesubnetsnip }}.27/24" - upstream_ip: "{{ blsecluster_pvc_upstreamsubnetsnip }}.27/24" - ipmi_host: "hv3-lom.{{ blsedomains_mgmtdomain }}" - ipmi_user: "{{ username_ipmi_host }}" - ipmi_password: "{{ passwd_ipmi_host }}" -# Networks -pvc_asn: "{{ blsecluster_pvc_asn }}" -pvc_routers: - - "{{ blsecluster_pvc_upstreamsubnetsnip }}.2" - - "{{ blsecluster_pvc_upstreamsubnetsnip }}.3" -pvc_cluster_device: "bond0" -pvc_cluster_mtu: "1500" -pvc_cluster_domain: "{{ blsedomains_pvc_clusterdomain }}" -pvc_cluster_subnet: "{{ blsecluster_pvc_clustersubnetv4 }}" -pvc_cluster_floatingip: "{{ blsecluster_pvc_clustersubnetsnip }}.252/24" -pvc_storage_device: "vlan99" -pvc_storage_mtu: "1500" -pvc_storage_domain: "{{ blsedomains_pvc_storagedomain }}" -pvc_storage_subnet: "{{ blsecluster_pvc_storagesubnetv4 }}" -pvc_storage_floatingip: "{{ blsecluster_pvc_storagesubnetsnip }}.252/24" -pvc_upstream_device: "vlan100" -pvc_upstream_mtu: "1500" -pvc_upstream_domain: "{{ blsedomains_pvc_upstreamdomain }}" -pvc_upstream_subnet: "{{ blsecluster_pvc_upstreamsubnetv4 }}" -pvc_upstream_floatingip: "{{ blsecluster_pvc_upstreamsubnetsnip }}.252/24" -pvc_upstream_gatewayip: "{{ blsecluster_pvc_upstreamsubnetsnip }}.1" -# Logging -pvc_log_to_file: True -pvc_log_to_stdout: True -pvc_log_keepalives: True -pvc_log_console_lines: 1000