Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are quite a bit of data which are not associated to a specific service, but are rather used by various modules, and should thus generally allways be present:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

profile::networking::rpfilterBefore we used multiple routing-tables on our hosts we had to turn off rpfilter to allow asymmetric routing. Now this should be turned on.trueN/ABooleannetworking.yamlAll
profile::networking::management::ipv4::prefixesA list over IPv4 prefixes for networks where management stations are found. Used to configure the firewall for SSH, stats-pages etc.

- '192.0.2.0/26'

N/AList of stringsnetworking.yamlAll
profile::networking::management::ipv6::prefixesA list over IPv6 prefixes for networks where management stations are found. Used to configure the firewall for SSH, stats-pages etc.- '2001:db8:beef:701::/64'N/AList of strings
All

Networks

The networks used in the deployment are all described in hiera to ensure that all configuration retrieves the same values when configuring anything network specific. There are one key in hiera which lists all networks:

networking.yamlAll
profile::ntp::serversA list over ntp servers to use.

- 'ntp.ntnu.no'

KeyDescriptionExampleCreated byData-type

Used by:

profile::networksA list over networks in this deployment. The values in this list is used as keys to retrieve the rest of the parameters.- 'management'

N/A

List of
Stringsrole::bootstrap, role::dashboard, role::kvm, role::dhcp

For each of the neworks listed in "profile::networks" the following keys should exist:

stringscommon.yamlAll
profile::keepalived::vrrp_passwordA password used to secure the vrrp instances'724EuvohTGOdlcFnLlDV'pwgen -s -1 20Stringcommon.yaml 
classesA list over puppet classes which should be installed on a node. Used when we do not have an ENC, but it is always required. It is thus recommended to have an empty list here if an ENC is used.[ ]N/AList of stringscommon.yaml or node-specific file.All
profile::productionlevelWhich production-level is this installation? "prod", "test" or "dev"?'dev
KeyDescriptionExampleCreated byData-type

Used by

profile::networks::<networkname>::domainThe network-specific domain-name.'management.example.com'N/AStringrole::bootstrap, role::dashboardprofile::networks::<networkname>::ipv4::dynamicrange(Optional) The range of ip-addresses for dynamic assignment to unregistered hosts.'192.0.2.230 192.0.2.240
'N/AString
role
common.yamlAll
profile::
bootstrap, role
baseconfig::
dashboard, role::dhcpprofile::networks::<networkname>::ipv4::gatewayThe IPv4 gateway on the network'192.0.2.1
smtp_relayAn SMTP relay which the server can use to send mail'smtp.example.com'N/AString
role::bootstrap, role::dashboard, role::dhcp
common.yamlAll
profile::
networks
baseconfig::
<networkname>::ipv4::id
maildomainThe domain the server sends mail from'example.com
The IPv4 network ID.'192.0.2.0
'N/AStringcommon.yamlAll

Networks

The networks used in the deployment are all described in hiera to ensure that all configuration retrieves the same values when configuring anything network specific. There are one key in hiera which lists all networks:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

role::bootstrap, role::dashboard, role::dhcp

profile::networks
::<networkname>::ipv4::maskThe IPv4 network mask'255.255.255.0
A list over networks in this deployment. The values in this list is used as keys to retrieve the rest of the parameters.

- 'management'

N/A
String
List of Stringsnetworking.yamlrole::bootstrap, role::dashboard, role::kvm, role::dhcp

For each of the neworks listed in "profile::networks" the following keys should exist:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::networks::<networkname>::domainThe network-specific domain-name.'management.example.com
:<networkname>::ipv4::prefixThe IPv4 CIDR prefix.'192.0.2.0/24
'N/AString
Most roles. Used as a source-net in firewall rules.
networking.yamlrole::bootstrap, role::dashboard
profile::networks::<networkname>::ipv4::
reserved
dynamicrange(Optional)
list over address-ranges which the dashboard should not assign to
The range of ip-addresses for dynamic assignment to unregistered hosts.
 -
'192.0.2.
245-
230 192.0.2.
248
240'N/AStringnetworking.yamlrole::bootstrap, role::dashboard, role::dhcp
profile::networks::<networkname>::
ipv6
ipv4::
prefix
gatewayThe
IPv6 CIDR prefix
IPv4 gateway on the network'192.0.2.1
'2001:db8:beef:707::/64
'N/AStringnetworking.yamlrole::bootstrap, role::
postgres::master
dashboard, role::
postgres::slave
dhcp
profile::networks::<networkname>::
vlanid
ipv4::idThe
VLAN
IPv4 network ID
of the network
.
504
'192.0.2.0'N/AString
Integer
networking.yamlrole::bootstrap, role::
kvm

Dashboard

The general configuration of the dashboard are based on the following keys:

KeyDescriptionExampleCreated byData-typeUsed by:
dashboard, role::dhcp
profile::
dashboard
networks::
django
<networkname>::ipv4::
secretA secret key used for misc. security features in the django backend. Should be the same on all dashboard servers'pM[`SiZd'=+ycXOAKm`srXY?@8DRw=BVdQXg$blHD"RD\2iv97'pwgen -s -y 50 -1String
maskThe IPv4 network mask'255.255.255.0'N/AStringnetworking.yamlrole::bootstrap, role::dashboard, role::dhcp
profile::networks::<networkname>::
dashboard
ipv4::
name
prefixThe
DNS name used to access the dashboard. This name should have an A and AAAA record configured with the address of the dashboard server (or loadbalancer). 'dashboard.example.com'N/A String role::bootstrap, role::dashboardprofile::dashboard::name::v4onlyA DNS name wich also points to the dashboard, but this name should only resolve to an IPv4 address. This is because of some processes currently only works over IPv4 (Authorization of the retrieval of PXE preseed files for example)  'v4dashboard.example.com'N/A 
IPv4 CIDR prefix.'192.0.2.0/24'N/AStringnetworking.yamlMost roles. Used as a source-net in firewall rules.
profile::networks::<networkname>::ipv4::reserved(Optional) list over address-ranges which the dashboard should not assign to hosts. - '192.0.2.245-192.0.2.248'N/AStringnetworking.yaml
String 
role::bootstrap, role::dashboard
profile::
dashboard
networks::<networkname>::
ldap
ipv6::
url
prefixThe
url for the LDAP server used for authentication.
IPv6 CIDR prefix'
ldaps://ldap.example.com:636
2001:db8:beef:707::/64'N/AStringnetworking.yamlrole::bootstrap, role::
dashboardprofile::dashboard::ldap::search_baseLDAP search base'OU=Users,DC=ldap,DC=example,DC=com'N/AStringrole::bootstrap, role::dashboard
postgres::master, role::postgres::slave
profile::
dashboard
networks::
ldap
<networkname>::
domain
vlanidThe VLAN ID of the network.504
LDAP domain nam'example-com'
N/A
String
Integernetworking.yamlrole::
bootstrap, role::dashboard
kvm

Legacy keys

As there still are a couple of puppet profiles expecting the management network to be named management, the following keys are neededThere are also some keys which have a suggested value wich should work for all installations, but are still included in hiera for flexibility:

KeyDescriptionExample
Suggested value
Created byData-typeDatafile:

Used by

:

profile::
dashboard
networks::management::ipv4::
apiA HTTP link used by external clients connecting to the dashboard.
prefixIPv4 prefix for management network"
'http://
%{hiera('profile::networks:
dashboard
:infrastructure::
name
ipv4::
v4only
prefix')}
'
"N/AString
role
networking.yaml 
profile::
bootstrap, role
networks::
dashboardprofile
management::
dashboard
ipv6::
datadirA location where the dashboard can store files.'/var/lib/machineadmin'Stringrole::bootstrap, role::dashboard

Database

prefixIPv6 prefix for management network"%{hiera('profile::networks::infrastructure::ipv6::prefix')}"N/AStringnetworking.yaml 


Users

To create users the following general keys are needed:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

profile::
dashboard::database::typeThe database type.'mysql' or 'sqlite
usersA list over usernames which puppet should configure users for

- 'eigil'

N/A
Stringrole::bootstrap, role::dashboardprofile::dashboard::database::nameThe database name (for mysql) or location (for sqlite)'dashboard' or '/var/dashboard.sqlite'N/AStringrole::bootstrap, role::dashboardprofile::dashboard::database::userThe database username

'dashboard'

N/AStringrole::bootstrap, role::dashboardprofile::dashboard::database::passThe database password'x&1/7LjWbz:i<:W&p+PG'pwgen -s -y 20 -1Stringrole::bootstrap, role::dashboardprofile::dashboard::database::hostThe database host. Could be a static string, or a hiera lookup.'mysql.example.com', '192.0.2.38' or "%{hiera('profile::haproxy::management::ip')}"N/AStringrole::bootstrap, role::dashboard

DHCP configuration:

List of Stringsusers.yamlAll machines

For each username the following keys should be created.

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

profile::user::<username>::uidThe user-id

801

N/AIntegerusers.yamlAll machines
profile::user::<username>::groupsA list over groups the user should belong to.

- 'sudo'

N/AList of stringsusers.yamlAll machines
profile::user::<username>::hashThe password-hash to be injected into /etc/shadow  Stringusers.yamlAll machines
profile::user::<username>::keysList over ssh-keys which should be added to the users authorized_keys

 

N/AList of stringsusers.yamlAll machines
profile::user::<username>::key::<keyname>A specific ssh key. Needs one for each key listed in profile::user::<username>::keys N/AStringusers.yamlAll machines


Ceph

The dashboard needs the keys listed at the section DHCP server in addition to the following keys to configure the DHCP servers:These keys will be subject to change, when they get to be a part of new roles

KeyDescriptionExampleCreated byData-type

Used by:

profile::
dhcp
ceph::
serversA list of hashes describing the dhcp servers. Key=DHCP-Server-name and value=DHCP-IPv4
fsidUUID for cluster'23a2d131-99f7-4ad0-9fb4-1977f59ce530'uuidgenString

role::controller,
role::compute,
role::storage

profile::ceph::replicasAmount of replicas in cluster3
'dhcp1': '192.0.2.21'
N/A
List of hashes
Integer

role::

bootstrap

controller,
role::

dashboard

DNS configuration:

The Dashboard requires some keys listed under the section DNS-Server, in addition to the following keys:

compute,
role::storage

profile::ceph::journal::sizeSize of journal (not relevant in luminous(?)) in MB15800N/AInteger

role::controller,
role::compute,
role::storage

profile::ceph::admin_keyAdmin key

'AQCIhy9a9ozCKhAApX5UoAnjad+KZ4VzWxBYJQ=='

ceph-authtool --gen-print-key
KeyDescriptionExampleCreated byData-type

Used by:

profile::dns::<shortname>::keyThe TSIG key used for updates sent to this server. It can be useful to let this be a hiera-lookup for the zones managed by our own DNS servers.

'UvetjoX5zMiw/NbQr3biug=='

"%{hiera('profile::dns::key::update')}"

dnssec-keygen -a HMAC-MD5 -b 128 -n HOST <keyname>
String

role::

bootstrap

controller,
role::

dashboard

PXE-Booting

The dashboard and the DHCP servers are together providing a pxeboot environment where we boot and install operatingsystem images. 

compute,
role::storage

profile::ceph::monitor_keyceph-mon key

'AQCIhy9a9ozCKhAApX5UoAnjad+KZ4VzWxBYJQ=='

ceph-authtool --gen-print-keyStringrole::controller,
role::compute
profile::ceph::mgr_keyceph-mgr key

'AQCIhy9a9ozCKhAApX5UoAnjad+KZ4VzWxBYJQ=='

ceph-authtool --gen-print-keyString

role::controller

profile::ceph::osd_bootstrap_keyceph-osd bootstrap key

'AQCIhy9a9ozCKhAApX5UoAnjad+KZ4VzWxBYJQ=='

ceph-authtool --gen-print-key
KeyDescriptionExampleCreated byData-type

Used by:

profile::pxe::imagesA list over image short-names (ID's used to identify images later).- '1604amd64'N/AList of stringsrole::bootstrap, role::dhcpprofile::pxe::<shortname>::nameA descriptive name of the specific image'Ubuntu 16.04 Server amd64'N/A
String

role::

bootstrap

controller,
role::

dhcp

storage

profile::
pxe
ceph::
<shortname>::kernelA URL to the kernel of the specific OS'http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux'
glance_keyglance key

'AQCIhy9a9ozCKhAApX5UoAnjad+KZ4VzWxBYJQ=='

ceph-authtool --gen-print-key
N/A
Stringrole::
bootstrap, role::dhcp
controller
(glance hosts)
profile::
pxe
ceph::
<shortname>::initrdA URL to the initrd image of the specific OS'http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz'N/A
nova_keynova (and cinder) key

'AQCIhy9a9ozCKhAApX5UoAnjad+KZ4VzWxBYJQ=='

ceph-authtool --gen-print-keyStringrole::
bootstrap
controller,
role::
dhcp

DHCP server

When running DHCP servers, the following keys are needed:

compute
(nova hosts)
(cinder hosts)
profile::ceph::nova_uuidUUID for nova/libvrt and cinder'23a2d131-99f7-4ad0-9fb4-1977f59ce530'uuidgenStringrole::controller,
role::compute
(nova and cinder hosts)
profile::ceph::cluster_networkCeph frontend network'172.17.2.0/24'N/AStringrole::storage
profile::ceph::public_networkCeph backend (replication) network'172.17.3.0/24'N/AStringrole::storage


Dashboard

The general configuration of the dashboard are based on the following keys:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

profile::dashboard::django::secret

A secret key used for misc. security features in the django backend. Should be the same on all dashboard servers

NB: The pwgen command lacks -y because some special characters will cause errors

'9tAMGEAEO4ln3t3PEXvN7dJov5SlbKU5AxxkSO50WQH6yIMt8X'pwgen -s 50 -1Stringcommon.yaml
KeyDescriptionExampleCreated byData-typeUsed by:profile::dhcp::omapi::keyThe omapi key used to update the DHCP servers'omapi_key=='
dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST key_name
String

role::bootstrap, role::dashboard, role::dhcp

profile::dhcp::omapi::nameThe omapi key name

'key_name'

String

role::bootstrap, role::dashboard, role::dhcp

profile::dhcp::searchdomainThe default search-domain handed to DHCP clients'cloud.domain.com'N/AString

role::bootstrap, role::dhcp

profile::dns::resolversThe DNS resolvers for clients to use

- '<ip-addres-DNS1>'

- '<ip-address-DNS2>'

N/AList of strings
role::bootstrap, role::
dhcp

DNS server

If you are hosting a DNS server the following keys are needed:

KeyDescriptionExampleCreated byData-typeUsed by:
dashboard
profile::
dns
dashboard::
forwarders
name
Which DNS servers your DNS server should use to resolve domainnames where it is not an authorative DNS

- '<ip-addres-DNS1>'

- '<ip-address-DNS2>'

N/A
The DNS name used to access the dashboard. This name should have an A and AAAA record configured with the address of the dashboard server (or loadbalancer). 'dashboard.example.com'N/A String common.yaml
List of strings
role::bootstrap, role::
dns::master
dashboard
profile::
dns
dashboard::
key
name::
transferThe TSIG keys used for zone-transfers'UvetjoX5zMiw/NbQr3biug=='dnssec-keygen -a HMAC-MD5 -b 128 -n HOST <keyname>
v4onlyA DNS name wich also points to the dashboard, but this name should only resolve to an IPv4 address. This is because of some processes currently only works over IPv4 (Authorization of the retrieval of PXE preseed files for example)  'v4dashboard.example.com'N/A String common.yaml
String
role::bootstrap, role::
dns
dashboard
profile::
master, role
dashboard::
dns
ldap::
slaveprofile::dns::key::updateThe TSIG keys used for DNS updates'UvetjoX5zMiw/NbQr3biug=='dnssec-keygen -a HMAC-MD5 -b 128 -n HOST <keyname>String
urlThe url for the LDAP server used for authentication.'ldaps://ldap.example.com:636'N/AStringcommon.yamlrole::bootstrap, role::
dns
dashboard
profile::
master, role
dashboard::
dns
ldap::
slaveprofile::dns::slavesA list over DNS slave-servers which replicates the zone-files from the main DNS server. The hash is structured as key=Servername and value=DNS-IPv4
search_baseLDAP search base'OU=Users,DC=ldap,DC=example,DC=com
'ns2.example.com': '192.0.2.130
'N/A
List of Hashes
Stringcommon.yamlrole::bootstrap, role::
dns
dashboard
profile::
master, role
dashboard::
dns
ldap::
slaveprofile::dns::zonesA list over DNS zones managed by our DNS servers, or used by our dashboard. The hash is structured as key=DNS-zone and value=DNS-server-shortname.
domainLDAP domain nam'example-com'
'zone.example.com': 'ns1'
N/A
Stringcommon.yaml
List of Hashes
role::bootstrap, role::dashboard
, role::dns::master, role::dns::slave

There are also some keys which have a suggested value wich should work for all installations, but are still included in hiera for flexibility:I addition there are a set of keys which are needed for each DNS server managing a DNS zone used by us. Shortname is here the name used in "profile::dns::zones".

KeyDescription
ExampleCreated by
Suggested valueData-typeDatafile:

Used by:

profile::
dns
dashboard::
<shortname>::ipv4The IPv4 address of a specific DNS server.'192.0.2.129'N/AStringrole::bootstrap, role::dashboard, role::dns::master, role::dns::slaveprofile::dns::<shortname>::nameThe fqdn of a specific DNS server'ns1.example.com'N/A
apiA HTTP link used by external clients connecting to the dashboard.'http://%{hiera('profile::dashboard::name::v4only')}'Stringcommon.yamlrole::bootstrap, role::dashboard
profile::dashboard::datadirA location where the dashboard can store files.'/var/lib/shiftleader'Stringcommon.yaml
String
role::bootstrap, role::
dns::master, role::dns::slave

Haproxy

We use haproxy to loadbalance multiple of our services. It needs the following keys present in hiera to work:

dashboard

Database

Key
Key
DescriptionExampleCreated byData-typeDatafile:

Used by:

profile::
haproxy
dashboard::
management
database::
ipv4
typeThe
IPv4 address used in front og the loadbalancer used for managemnet services
database type.'mysql' or 'sqlite'
'192.0.2.151' 
N/AStringcommon.yamlrole::bootstrap, role::
puppet
dashboard
profile::
db, role
dashboard::
puppet
database::
server, role::mysql, role::balancer::managementprofile::haproxy::management::ipv4::idThe VRRP id used by the IPv4 VRRP instance.11
nameThe database name (for mysql) or location (for sqlite)'dashboard' or '/var/dashboard.sqlite'N/AString
Integer
common.yamlrole::bootstrap, role::
balancer::management
dashboard
profile::
haproxy
dashboard::
management
database::
ipv4::priorityThe VRRP priority used by the IPv4 VRRP instance.10 
userThe database username

'dashboard'

N/AString
Integer
common.yamlrole::bootstrap, role::
balancer::management
dashboard
profile::
haproxy
dashboard::
management
database::
ipv6
passThe
IPv4 address used in front og the loadbalancer used for managemnet services'2001:db8:beef:707::7b1'N/A
database password'x&1/7LjWbz:i<:W&p+PG'pwgen -s -y 20 -1Stringcommon.yaml
String
role::bootstrap, role::
puppet::db, role::puppet::server, role::mysql, role::balancer::management 
dashboard
profile::
haproxy
dashboard::
management
database::
ipv6::idThe VRRP id used by the IPv6 VRRP instance. 12
hostThe database host. Could be a static string, or a hiera lookup.'mysql.example.com', '192.0.2.38' or "%{hiera('profile::haproxy::management::ip')}"N/A
Integer
Stringcommon.yamlrole::bootstrap, role::
balancer::managementprofile::haproxy::management::ipv6::priorityThe VRRP priority used by the IPv6 VRRP instance.10N/AIntegerrole::bootstrap, role::balancer::management

MySQL

dashboard

DHCP configuration:

The dashboard needs the keys listed at the section DHCP server in addition to the following keys to configure the DHCP serversOur mysql cluster uses the following hiera-keys:

KeyDescriptionExampleCreated byData-typeDatafile

Used by:

profile::
mysqlcluster
dhcp::servers
This is a list over IPv4 addresses used by servers in the cluster. This list are used when a server starts up, to discover at least one of the machines already in the cluster.
A list of hashes describing the dhcp servers. Key=DHCP-Server-name and value=DHCP-IPv4'dhcp1':
-
'192.0.2.
201
21'N/A
String
List of hashescommon.yamlrole::bootstrap, role::
mysqlprofile::mysqlcluster::masterThe fqdn of one of the mysql-servers. This are in theory used by the puppet-galera module to start one server in case all servers are down.'mysql1.example.com'N/AStringrole::bootstrap, role::mysqlprofile::mysqlcluster::root_passwordThis is the password of the mysql root user'OwT$Etc$=|;h(=upip#3'pwgen -s -y 20 -1Stringrole::bootstrap, role::mysqlprofile::mysqlcluster::status_passwordThis is the password of the mysql status user

';^8P"M,Oem6le\T"am!0'

pwgen -s -y 20 -1
dashboard

DNS configuration:

The Dashboard requires some keys listed under the section DNS-Server, in addition to the following keys:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

profile::dns::<shortname>::keyThe TSIG key used for updates sent to this server. It can be useful to let this be a hiera-lookup for the zones managed by our own DNS servers.

'UvetjoX5zMiw/NbQr3biug=='

"%{hiera('profile::dns::key::update')}"

dnssec-keygen -a HMAC-MD5 -b 128 -n HOST <keyname>Stringcommon.yaml
String
role::bootstrap, role::
mysqlprofile::mysqlcluster::haproxy_passwordThis is the password of the mysql haproxy user. This user is so that haproxy can create more robust checks than just see if port 3306 is open.'4g36-&jHNFF?J-7yQZHa'pwgen -s -y 20 -1Stringrole::bootstrap, role::mysql

Postgres

Our postgres servers uses the following hiera keys:

dashboard

PXE-Booting

The dashboard and the DHCP servers are together providing a pxeboot environment where we boot and install operatingsystem images. 

KeyDescriptionExampleCreated byData-typeDatafile:

Used by:

profile::pxe::imagesA list over image short-names (ID's used to identify images later).- '1604amd64'N/AList of stringscommon.yaml
KeyDescriptionExampleCreated byData-type

Used by

profile::postgres::ipv4The IPv4 address to use in front of the postgres servers.'192.0.2.204'N/A String
role::bootstrap, role::
postgres
dhcp
profile::
master, role
pxe::
postgres
<shortname>::
slave, role::puppet::dbprofile::postgres::ipv4::idThe VRRP id to use for the VRRP instance negotiating for postgres's IPv4 address13
nameA descriptive name of the specific image'Ubuntu 16.04 Server amd64'N/A
Integer
Stringcommon.yamlrole::bootstrap, role::
postgres::master, role::postgres::slave
dhcp
profile::
postgres
pxe::
ipv4
<shortname>::
priorityThe VRRP priority to use for the VRRP instance negotiating for postgres's IPv4 address
kernelA URL to the kernel of the specific OS'http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux'
10
N/AString
Integer
common.yamlrole::bootstrap, role::
postgres
dhcp
profile::
master, role
pxe::
postgres
<shortname>::
slaveprofile::postgres::ipv6The IPv6 address to use in front of the postgres servers.'2001:db8:beef:707::9:6591'N/A String
initrdA URL to the initrd image of the specific OS'http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz'N/AStringcommon.yamlrole::bootstrap, role::
postgres::master, role::postgres::slave, role::puppet::db
dhcp

DHCP server

When running DHCP servers, the following keys are needed:

KeyDescriptionExampleCreated byData-typeDatafile:Used by:
profile::
postgres
dhcp::
ipv6
omapi::
id
keyThe
VRRP id to use for the VRRP instance negotiating for postgres's IPv6 address
omapi key used to update the DHCP servers'omapi_key=='
dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST key_name
Stringcommon.yaml
14N/AInteger

role::bootstrap, role::

postgres::master

dashboard, role::

postgres::slave

dhcp

profile::
postgres
dhcp::
ipv6
omapi::
priority
nameThe omapi key name

'key_name'

Stringcommon.yaml
The VRRP priority to use for the VRRP instance negotiating for postgres's IPv6 address10N/AInteger

role::bootstrap, role::

postgres::master

dashboard, role::

postgres::slave

dhcp

profile::
postgres
dhcp::
masterserverA fqdn identifying the postgres server which is supposed to be the master. This affects which servers are going to create databases and users.
searchdomainThe default search-domain handed to DHCP clients'cloud.domain.com'
'pgsql1.example.com'
N/AStringcommon.yaml

role::bootstrap, role::

postgres::master, role::postgres::slave

dhcp

profile::
postgres
dns::
password
resolversThe
password for the "postgres" postgresql user.'d4Cwfl)W}onosE~Y[]G,'pwgen -s -y 20 -1
DNS resolvers for clients to use

- '<ip-addres-DNS1>'

- '<ip-address-DNS2>'

N/AList of stringscommon.yaml
String

role::bootstrap, role::

postgres::master, role::postgres::slave

dhcp

DNS server

If you are hosting a DNS server the following keys are needed:

KeyDescriptionExampleCreated byData-typeDatafile:Used by:
profile::
postgres
dns::
replicatorpasswordThe password used for the "replicator" postgresql user.'Gz,j*>Qt'dF{-\Sr4N-_'pwgen -s -y 20 -1
forwardersWhich DNS servers your DNS server should use to resolve domainnames where it is not an authorative DNS

- '<ip-addres-DNS1>'

- '<ip-address-DNS2>'

N/AList of stringscommon.yaml
String

role::bootstrap, role::

postgres

dns::master

, role

profile::
postgres::slave

Puppet

These are our puppet-related hiera keys:

dns::key::transferThe TSIG keys used for zone-transfers'UvetjoX5zMiw/NbQr3biug=='dnssec-keygen -a HMAC-MD5 -b 128 -n HOST <keyname>Stringcommon.yamlrole::bootstrap, role::dns::master, role::dns::slave
profile::dns::key::updateThe TSIG keys used for DNS updates'UvetjoX5zMiw/NbQr3biug=='dnssec-keygen -a HMAC-MD5 -b 128 -n HOST <keyname>Stringcommon.yamlrole::bootstrap, role::dns::master, role::dns::slave
profile::dns::slavesA list over DNS slave-servers which replicates the zone-files from the main DNS server. The hash is structured as key=Servername and value=DNS-IPv4'ns2.example.com': '192.0.2.130'N/AList of Hashescommon.yamlrole::bootstrap, role::dns::master, role::dns::slave
profile::dns::zonesA list over DNS zones managed by our DNS servers, or used by our dashboard. The hash is structured as key=DNS-zone and value=DNS-server-shortname.'zone.example.com': 'ns1'N/AList of Hashescommon.yamlrole::bootstrap, role::dashboard, role::dns::master, role::dns::slave

I addition there are a set of keys which are needed for each DNS server managing a DNS zone used by us. Shortname is here the name used in "profile::dns::zones".

KeyDescriptionExampleCreated byData-typeDatafile:Used by:
profile::dns::<shortname>::ipv4The IPv4 address of a specific DNS server.'192.0.2.129'N/AStringcommon.yamlrole::bootstrap, role::dashboard, role::dns::master, role::dns::slave
profile::dns::<shortname>::nameThe fqdn of a specific DNS server'ns1.example.com'N/AStringcommon.yamlrole::bootstrap, role::dns::master, role::dns::slave

KVM / Libvirt

Networks

The class role::kvm makes use of the following general purpose keys to auto create OVS bridges, which the VMs can connect to:

  • profile::networks
  • profile::networks::${network}::vlanid

In addition every KVM host needs to specify which physical interface(s) that carries the networks specified in the profile::networks key

KeyDescriptionExampleCreated byData-typeUsed by:

profile::kvm::interfaces::<networkname>

Example:

profile::kvm::interfaces::management

Name of the physical interfaces that carries the given networkname.

Multiple networks can have the same physical interface, which will be the case if the NIC is connected to a VLAN trunk port.

'eno2'N/AStringrole::kvm

 

Haproxy

We use haproxy to loadbalance multiple of our services. It needs the following keys present in hiera to work:

KeyDescriptionExampleCreated byData-typeDatafile:Used by:
profile::haproxy::web::profileWhich web profile  should this haproxy node have'management'N/AStringnode-specificrole::bootstrap, role::balancer::*
profile::haproxy::${profile}::ipv4The IPv4 address used in front og the loadbalancer used for managemnet services'192.0.2.151' N/AStringnetworking.yamlrole::bootstrap, role::puppet::db, role::puppet::server, role::mysql, role::balancer::management
profile::haproxy::${profile}::ipv4::idThe VRRP id used by the IPv4 VRRP instance.11N/AIntegernetworking.yamlrole::bootstrap, role::balancer::management
profile::haproxy::${profile}::ipv4::priorityThe VRRP priority used by the IPv4 VRRP instance.10 N/AIntegernetworking.yamlrole::bootstrap, role::balancer::management
profile::haproxy::${profile}::ipv6The IPv4 address used in front og the loadbalancer used for managemnet services'2001:db8:beef:707::7b1'N/AStringnetworking.yamlrole::bootstrap, role::puppet::db, role::puppet::server, role::mysql, role::balancer::management 
profile::haproxy::${profile}::ipv6::idThe VRRP id used by the IPv6 VRRP instance. 12N/AIntegernetworking.yamlrole::bootstrap, role::balancer::management
profile::haproxy::${profile}::ipv6::priorityThe VRRP priority used by the IPv6 VRRP instance.10N/AIntegernetworking.yamlrole::bootstrap, role::balancer::management
profile::haproxy::${profile}::domainsWhich domains haproxy should forward for in frontend "ft_web" for given profile

-'foo.com'

-'bar.foo.com'

N/AList of stringscommon.yamlrole::balancer::*
profile::haproxy::management::apicertA .pem certificate bundle with private key, CAcert and server certtl;dr

cat private_key.key server.crt ca.crt > haproxy_web.pem

The order is important!

TLS from CertManager: Choose the "as Certificate (w/ issuer after)" alternative

Multiline stringcerts.yamlrole::bootstrap, role::balancer::management
profile::haproxy::services::apicertA .pem certificate bundle with private key, CAcert and server certtl;dr

cat private_key.key server.crt ca.crt > haproxy_web.pem

The order is important!

TLS from CertManager: Choose the "as Certificate (w/ issuer after)" alternative

Multiline stringcerts.yamlrole::bootstrap, role::balancer::services
profile::haproxy::${profile}::webcertA .pem certificate bundle with private key, CAcert and server certtl;dr

cat private_key.key server.crt ca.crt > haproxy_web.pem

The order is important!

TLS from CertManager: Choose the "as Certificate (w/ issuer after)" alternative

Multiline stringcerts.yaml

role::balancer::*

 

profile::haproxy::management::apicert::certfileFilepath and name for the apicert bundle'/etc/ssl/private/haproxy_web.pem'N/AStringcerts.yamlrole::balancer::web

Munin

KeyDescriptionExampleCreated byData-typeDatafile

Used by

profile::munin::urls

List of FQDNs the munin server should create a vhost in apache for.

Typically - set the "world reachable" FQDN in common.yaml

Each node will get a vhost with their FQDN automaticly, through the apache class.

Only set a munin url in node specific file if it's different from the servers hostname.

- 'munin.exaxmple.com'

- 'munin1.example.com'

N/AList of Strings

common.yaml

Node specific

role::munin

MySQL

Our mysql cluster uses the following hiera-keys:

KeyDescriptionExampleCreated byData-typeDatafile

Used by

profile::mysqlcluster::serversThis is a list over IPv4 addresses used by servers in the cluster. This list are used when a server starts up, to discover at least one of the machines already in the cluster.

- '192.0.2.201'

N/AStringcommon.yamlrole::bootstrap, role::mysql
profile::mysqlcluster::masterThe fqdn of one of the mysql-servers. This are in theory used by the puppet-galera module to start one server in case all servers are down.'mysql1.example.com'N/AStringcommon.yamlrole::bootstrap, role::mysql
profile::mysqlcluster::root_passwordThis is the password of the mysql root user'OwT$Etc$=|;h(=upip#3'pwgen -s -y 20 -1Stringcommon.yamlrole::bootstrap, role::mysql
profile::mysqlcluster::status_passwordThis is the password of the mysql status user

';^8P"M,Oem6le\T"am!0'

pwgen -s -y 20 -1Stringcommon.yamlrole::bootstrap, role::mysql
profile::mysqlcluster::haproxy_passwordThis is the password of the mysql haproxy user. This user is so that haproxy can create more robust checks than just see if port 3306 is open.'4g36-&jHNFF?J-7yQZHa'pwgen -s -y 20 -1Stringcommon.yamlrole::bootstrap, role::mysql

Openstack

General keys, shared amongst various Openstack services

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::openstack::foofoofooN/A Stringopenstack.yamlrole::foo

Cinder

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::cinder::foofoofooN/A Stringopenstack.yamlrole::foo

Glance

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::glance::foofoofooN/A Stringopenstack.yamlrole::foo

Heat

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::heat::foofoofooN/A Stringopenstack.yamlrole::foo

Horizon

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::horizon::foofoofooN/A Stringopenstack.yamlrole::foo

Keystone

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::keystone::foofoofooN/A Stringopenstack.yamlrole::foo

Neutron

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::neutron::foofoofooN/A Stringopenstack.yamlrole::foo

Nova

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::nova::foofoofooN/A Stringopenstack.yamlrole::foo

 

Postgres

Our postgres servers uses the following hiera keys:

KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::postgres::ipv4The IPv4 address to use in front of the postgres servers.'192.0.2.204'N/A Stringcommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave, role::puppet::db
profile::postgres::ipv4::idThe VRRP id to use for the VRRP instance negotiating for postgres's IPv4 address13N/AIntegercommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave
profile::postgres::ipv4::priorityThe VRRP priority to use for the VRRP instance negotiating for postgres's IPv4 address10N/AIntegercommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave
profile::postgres::ipv6The IPv6 address to use in front of the postgres servers.'2001:db8:beef:707::9:6591'N/A Stringcommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave, role::puppet::db
profile::postgres::ipv6::idThe VRRP id to use for the VRRP instance negotiating for postgres's IPv6 address14N/AIntegercommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave
profile::postgres::ipv6::priorityThe VRRP priority to use for the VRRP instance negotiating for postgres's IPv6 address10N/AIntegercommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave
profile::postgres::masterserverA fqdn identifying the postgres server which is supposed to be the master. This affects which servers are going to create databases and users.'pgsql1.example.com'N/AStringcommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave
profile::postgres::passwordThe password for the "postgres" postgresql user.'d4Cwfl)W}onosE~Y[]G,'pwgen -s -y 20 -1Stringcommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave
profile::postgres::replicatorpasswordThe password used for the "replicator" postgresql user.'Gz,j*>Qt'dF{-\Sr4N-_'pwgen -s -y 20 -1Stringcommon.yamlrole::bootstrap, role::postgres::master, role::postgres::slave

Puppet

These are our puppet-related hiera keys:

KeyDescriptionExampleCreated byData-type

Used by

profile::puppet::aptkeyThe gpg key used to authenticate the puppetlabs apt repository'6F6B15509CF8E59E6E469F327F438280EF8D349F'puppetlabsStringAllprofile::puppet::caserverThe fqdn of the puppetca server'puppetca.example.com'N/AStringAllprofile::puppet::environmentThe puppet environment a certain host should be configured to use. This needs to be a valid puppet environment, but it will also be owerridden by the ENC, so it is not important exactly which environment are listed her as long as it exists. If you do not use an ENC, this is the puppet environment a client will retrieve config from.'production'N/AStringAllprofile::puppet::hostnameThis is the fqdn the clients use to contact the puppetmasters.'puppet.example.com'N/AStringAllprofile::puppet::r10k::repoThe path to the git-repository which r10k uses to retrieve environments and modules.'https://github.com/myorg/r10k.git'N/AString
KeyDescriptionExampleCreated byData-typeDatafile:

Used by

profile::puppet::aptkeyThe gpg key used to authenticate the puppetlabs apt repository'6F6B15509CF8E59E6E469F327F438280EF8D349F'puppetlabsStringcommon.yamlAll
profile::puppet::caserverThe fqdn of the puppetca server'puppetca.example.com'N/AStringcommon.yamlAll
profile::puppet::environmentThe puppet environment a certain host should be configured to use. This needs to be a valid puppet environment, but it will also be owerridden by the ENC, so it is not important exactly which environment are listed her as long as it exists. If you do not use an ENC, this is the puppet environment a client will retrieve config from.'production'N/AStringcommon.yamlAll
profile::puppet::hostnameThis is the fqdn the clients use to contact the puppetmasters.'puppet.example.com'N/AStringcommon.yamlAll
profile::puppet::r10k::repoThe path to the git-repository which r10k uses to retrieve environments and modules.'https://github.com/myorg/r10k.git'N/AStringcommon.yamlrole::bootstrap, role::puppet::server, role::puppet::ca
profile::puppet::runintervalHow often the puppet client should run. Given as a string consisting of a number and a prefix (h, m).'60m'N/AStringcommon.yamlAll
profile::puppetdb::database::name

The name of the postgres database used by puppetdb

'puppetdb'N/AStringcommon.yamlrole::bootstrap, role::puppet::db, role::postgres::master
profile::puppetdb::database::userThe username of the postgres database used by puppetdb'puppetdb'N/AStringcommon.yamlrole::bootstrap, role::puppet::db, role::postgres::master
profile::puppetdb::database::pass

The password of the postgres database used by puppetdb

NB: The pwgen command lacks -y because some special characters will cause errors

'ys0c85FlLhhfqeteFIfx'pwgen -s  20 -1Stringcommon.yamlrole::bootstrap, role::puppet::db, role::postgres::master
profile::puppetdb::hostnameThe hostname which the puppetservers use to contact the puppetdb service'puppetdb.example.com'N/AStringcommon.yaml
role::bootstrap, role::puppet::server
,
role::
puppet::ca
puppet::ca

Rabbitmq

KeyDescriptionExampleCreated byData-typeDatafileUsed by:
 profile::
puppet
rabbitmq::
runintervalHow often the puppet client should run. Given as a string consisting of a number and a prefix (h, m).
ipIP address for rabbitmq keepalived VIP'10.212.132.11
'60m
'

N/A

String
All
networking.yaml

role::rabbitmq,
role::compute

profile::
puppetdb
rabbitmq::
database
vrrp::
name
id The
name of the postgres database used by puppetdb
VRRP id to use for the VRRP instance negotiating for rabbitmq's IPv4 address12
'puppetdb'
N/AInteger
String
networking.yamlrole::
bootstrap, role::puppet::db,
rabbitmq
 
role::postgres::master
profile::
puppetdb
rabbitmq::
database
vrrp::
user
priorityThe
username of the postgres database used by puppetdb
VRRP priority to use for the VRRP instance negotiating for rabbitmq's IPv4 address100
'puppetdb'
N/A
Stringrole::bootstrap, role::puppet::db, role::postgres::master
Integer

networking.yaml

or node-specific

role::rabbitmq
profile::
puppetdb
rabbitmq::
database::passThe password of the postgres database used by puppetdb'teY.>&3@Ub$X-OGxOFQ7'pwgen -s -y 20 -1
rabbituser Default user to create in rabbitmq'rabbit'N/AStringcommon.yaml
String
role::
bootstrap
rabbitmq,
role::
puppet::db, role::postgres::master
compute
profile::
puppetdb
rabbitmq::
hostnameThe hostname which the puppetservers use to contact the puppetdb service'puppetdb.example.com'N/AString
rabbitpassPassword for default vhost / pwgen -s -y 20 -1String 

role::rabbitmq,

role::compute

profile::rabbitmq::rabbitsecret rabbitmq master secret pwgen -s -y 20 -1String 

role::rabbitmq

role::bootstrap, role::puppet::server role::puppet::ca

Redis

KeyDescriptionExampleCreated byData-typeDatafileUsed by:
profile::redis::masterName or IP address of initial redis master

'redis1.cloud.domain.com' or '192.168.100.12'

WARNING: If you use DNS name, ensure that the name DOESN'T resolve to 127.0.0.1 at the given redis host, or else this node will not add itself

to the redis-sentinel cluster

N/A

String

role::redis

to the redis-sentinel cluster

N/A

Stringcommon.yaml

role::redis

profile::redis::masterauthPassword for master communitcation'teY.>&3@Ub$X-OGxOFQ7'pwgen -s -y 20 -1Stringcommon.yaml

role::redis

role::balancer::management

role::sensuserver

role::bootstrap

profile::redis::nodetypeDefined on each redis-node. Only valid values are 'master' or 'slave''master'N/AStringnode specific filerole::redis
profile::redis::ipThe IP redis clients should contact redis on. Typically the haproxy ip

'192.168.100.10'

or

"%{hiera('profile::haproxy::management::

ip

ipv4')}"

or

redis.cloud.domain.com

N/AStringcommon.yamlroles::sensuserver


Sensu

KeyDescriptionExampleCreated byData-typeDatafileUsed by:
profile::sensu::installOpt-out for installing sensu. If not set to false, sensu-clients will be installed everywherefalseN/ABooleansensu.yaml or node-specificAll
profile::sensu::uchiwa::private_keyPrivate key for uchiwa JWT creationContent of generated file

openssl genrsa -out uchiwa.rsa 2048

Stringsensu.yaml

role::sensuserver

profile::sensu::uchiwa::public_keyPublic key for uchiwa JWT creationContent of generated fileopenssl rsa -in uchiwa.rsa -pubout > uchiwa.rsa.pubStringsensu.yamlrole::sensuserver
profile::sensu::uchiwa::passwordPassword for default (and only) user 'sensu' in Uchiwa'g00dp@$$w0rd'pwgen -s -y 20 1Stringsensu.yamlrole::sensuserver
profile::sensu::uchiwa::fqdnFQDN for uchiwa web frontend (not FQDN for the server running an instance of it)'sensu.cloud.domain.com'N/A
String
Stringsensu.yamlrole::sensuserver, role::bootstrap, role::balancer::mangement
role::sensuserver
profile::sensu::rabbit_passwordPassword for sensu user at the /sensu rabbitmq vhost. Needed for rabbitmq servers, sensu servers AND all sensu clients.'g00dp@$$w0rd'pwgen -s -y 20 1Stringsensu.yamlAll
profile::sensu::mailer::urlURL to Uchiwa web frontend, that will appear in e-mails from Sensu"http://%{hiera('profile::sensu::uchiwa::fqdn')}"N/AStringsensu.yamlrole::sensuserver
profile::sensu::mailer::mail_fromThe address sensu will send e-mail alerts from'sensu@sensu.domain.com'N/AStringsensu.yamlrole::sensuserver
profile::sensu::mailer::mail_toList of addresses that sensu will send e-mail alerts to

- 'sysadmin1@cloud.domain.com'

- 'sysadmin2@cloud.domain.com'

N/AList of stringssensu.yamlrole::sensuserver
profile::sensu::mailer::smtp_addressOutgoing SMTP server mail alerts'smtp.cloud.domain.com'N/AStringsensu.yamlrole::sensuserver
profile::sensu::mailer::smtp_portTCP port used for connections to the given SMTP server25N/AIntegersensu.yamlrole::sensuserver
profile::sensu::mailer::smtp_domainSMTP domain'cloud.domain.com'N/AStringsensu.yamlrole::sensuserver
profile::sensu::plugins

The plugins listed here will be installed on all clients.

OBS:

The example value is actually mandatory, because the checks tagged with 'all' in profile::sensu::checks rely on them. Puppet will not fail without defining this key, but none of the cheks will make any sense...

- 'sensu-plugins-disk-checks'
- 'sensu-plugins-load-checks'
- 'sensu-plugins-memory-checks'
- 'sensu-plugins-process-checks'
- 'sensu-plugins-hardware'
- 'sensu-plugins-puppet'
- 'sensu-plugins-dns'
- 'sensu-plugins-ntp'

N/AList of stringssensu.yamlAll
sensu::redactValues that match the patterns in this list will be redacted in all output from sensu

- 'password'
- 'pass'
- 'pw'

N/AList of stringssensu.yamlAll
sensu::subscriptionsWhich checks a sensu-client should subscribe to. This is typically set per node. By default, a sensu-client will subscribe to checks tagged with 'all', and if the client is a physical server, it will also subscribe to 'physical-servers'

- 'mysql'

- 'rabbitmq'

- 'roundrobin:ceph'

N/AList of stringsnode-specificAll
sensu::client_customIf you want to override parameters for check command. I.e thresholds, specifying passowrd etc. This where you do that. Should only be set per node

'load':

warning: "8,4,2"

critical: "16,8,4"

'mysql':

password: "%{hiera('profile::mysqlcluster::status_password')}"

'disk':

mountpoints: '/,/home,/var'

N/AList of hashes

node-specific

All (or, more precise, just the client you add this key to)

KVM / Libvirt

Networks

The class role::kvm makes use of the following general purpose keys to auto create OVS bridges, which the VMs can connect to:

  • profile::networks
  • profile::networks::${network}::vlanid

In addition every KVM host needs to specify which physical interface(s) that carries the networks specified in the profile::networks key

...

profile::kvm::interfaces::<networkname>

Example:

profile::kvm::interfaces::management

...

Name of the physical interfaces that carries the given networkname.

Multiple networks can have the same physical interface, which will be the case if the NIC is connected to a VLAN trunk port.

...

or really anywhere if you configure lookup_options to deep merge

All (or, more precise, just the client you add this key to)
profile::sensu::checks::tlsexpiryA hash of 'fqdn[:port]' : 'shortname' which should be checked for TLS Expiry

'www.foo.com' : 'foo'

'api.foo.com:8080' : 'api'

'munin.foo.com' : 'munin'

N/AHashsensu.yamlrole::sensuserver

lookup_options:

You might wanna set this in sensu.yaml to allow client_custom settings to be set in multple hiera files without overwriting them with the settings in the top of the hierarchy

  sensu::client_custom:

    merge:

     strategy: 'deep'

     merge_hash_arrays: true

N/AList of hashessensu.yamlAll

 

 

...