Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vadorovsky/51adf6638e965fcdebe4da3e32dccdfb to your computer and use it in GitHub Desktop.
Save vadorovsky/51adf6638e965fcdebe4da3e32dccdfb to your computer and use it in GitHub Desktop.
# URL of the libvirt server
# EXAMPLE:
# libvirt_uri = "qemu:///system"
libvirt_uri = "qemu:///system"
# Path of the key file used to connect to the libvirt server
# Note this value will be appended to the libvirt_uri as a 'keyfile' query: <libvirt_uri>?keyfile=<libvirt_keyfile>
# EXAMPLE:
# libvirt_keyfile = "~/.ssh/custom_id"
libvirt_keyfile = ""
# URL of the image to use
# EXAMPLE:
# image_uri = "http://download.suse.com/..."
image_uri = "SLES15-SP2-JeOS.x86_64-15.2-OpenStack-Cloud-GM.qcow2"
# Identifier to make all your resources unique and avoid clashes with other users of this terraform project
stack_name = "my-caasp-cluster"
# CIDR of the network
network_cidr = "10.17.0.0/22"
# Enable creation of LB node
create_lb = true
# Number of master nodes
masters = 1
# Number of worker nodes
workers = 2
# Name of DNS domain
dns_domain = "caasp.local"
# Username for the cluster nodes
# EXAMPLE:
username = "sles"
# define the repositories to use
# EXAMPLE:
# repositories = {
# repository1 = "http://example.my.repo.com/repository1/"
# repository2 = "http://example.my.repo.com/repository2/"
# }
repositories = {
caasp_devel = "http://download.suse.de/ibs/Devel:/CaaSP:/5/SLE_15_SP2"
caasp_ga = "http://download.suse.de/ibs/Devel:/CaaSP:/5/SLE_15_SP2/"
suse_ca = "http://download.suse.de/ibs/SUSE:/CA/SLE_15_SP2"
sle15sp2_update = "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/Update/standard/"
sle15sp2_ga = "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/GA/standard/"
sle15sp1_update = "http://download.suse.de/ibs/SUSE:/SLE-15-SP1:/Update/standard/"
sle15sp1_ga = "http://download.suse.de/ibs/SUSE:/SLE-15-SP1:/GA/standard/"
sle15_update = "http://download.suse.de/ibs/SUSE:/SLE-15:/Update/standard/"
sle15_ga = "http://download.suse.de/ibs/SUSE:/SLE-15:/GA/standard/"
}
# define the repositories to use for the loadbalancer node
# EXAMPLE:
# repositories = {
# repository1 = "http://example.my.repo.com/repository3/"
# repository2 = "http://example.my.repo.com/repository4/"
# }
lb_repositories = {
suse_ca = "http://download.suse.de/ibs/SUSE:/CA/SLE_15_SP2"
sle15sp2_update = "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/Update/standard/"
sle15sp2_ga = "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/GA/standard/"
sle15sp1_update = "http://download.suse.de/ibs/SUSE:/SLE-15-SP1:/Update/standard/"
sle15sp1_ga = "http://download.suse.de/ibs/SUSE:/SLE-15-SP1:/GA/standard/"
sle15_update = "http://download.suse.de/ibs/SUSE:/SLE-15:/Update/standard/"
sle15_ga = "http://download.suse.de/ibs/SUSE:/SLE-15:/GA/standard/"
}
# Minimum required packages. Do not remove them.
# Feel free to add more packages
packages = [
"zypper-needs-restarting",
"kernel-default",
"-kernel-default-base"
]
# ssh keys to inject into all the nodes
# EXAMPLE:
# authorized_keys = [
# "ssh-rsa <key-content>"
# ]
authorized_keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCkKD9MeNiYkXY/c1pA89Tuuqmzd4o1bKKTbABXN659e/1JVvwWoUrLfBYlQZzIp/fbNhueCvnRx9RDyf6lAAIiOxsgr0J/opJgFBtt+/2bO13X3hScwirJ0aQMukK0pGa4BAaRkrBa7/YgY49mXL6OL3BG1ENFP+/SXJ0tHjPnyTyRgxkx+wutnw4PnoRrkP/m1zDbgbb+UYDV84OBOTAnrgY8leef2+SF87HnpyawzvX8jOgm6aVtgspnwTyR/BdvxiAAhK/WJBbB7MKoKMsQKveVlcxovwkRH46pB64vcb+6Ypeo+1EX4g6iWVAkXPrGh/K1ehyW09gl6ICS98M34Ez4FPlbBbUQNyyvpdn1f5UNfJbiji4iAbHj99m7U7BxDI3O6QOe7yloeLxvUTPM+wFmTMYk5LQtdDGD62kdtmu+HW5pVT0T6itztP9jIWNyTEY/ZGEwBXaVCCPeO9kUk7OWmO5/Vg+AccRyhbz/YSnOc5f7IRafdr6J+EpQ5W0= mrostecki@opensuse.org"
]
# IMPORTANT: Replace these ntp servers with ones from your infrastructure
ntp_servers = ["0.suse.pool.ntp.org", "1.suse.pool.ntp.org", "2.suse.pool.ntp.org", "3.suse.pool.ntp.org"]
# Set node's hostname from DHCP server
#hostname_from_dhcp = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment