Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Cookiecutter template for an OSISM configuration repository

License

Notifications You must be signed in to change notification settings

plusserver/cfg-cookiecutter

 
 

Repository files navigation

Cookiecutter template for an OSISM configuration repository

Installation

The pwgen tool must be installed.

Virtualenv

$ virtualenv -p python3 .venv
$ source .venv/bin/activate
$ pip3 install -r requirements.txt

Usage

$ cookiecutter ssh://[email protected]:osism/cfg-cookiecutter.git
ceph_fsid [00000000-0000-0000-0000-000000000000]:
ceph_network_backend [192.168.80.0/20]:
[...]

Alternative:

$ git clone ssh://[email protected]:osism/cfg-cookiecutter.git
$ cd cookiecutter
$ cookiecutter .
ceph_fsid [00000000-0000-0000-0000-000000000000]:
ceph_network_backend [192.168.80.0/20]:
[...]

User config

In cookiecutter.yml.sample you can find a sample user config.

---
default_context:
  ceph_fsid: 00000000-0000-0000-0000-000000000000
$ cookiecutter --config-file cookiecutter.yml ssh://[email protected]:osism/cfg-cookiecutter.git
ceph_fsid [00000000-0000-0000-0000-000000000000]:
ceph_network_backend [192.168.80.0/20]:
[...]

Post-processing

  • The password for Ansible Vault encrypted files, ist stored at secrets/vaultpass.
  • The password of the generated Keepass file is password. This should be changed.
  • If a user config has been used, it can also be stored in the repository
  • The contents in the generated cfg-customer directory is stored in the repository. Be careful not to forget dotfiles like .gitignore. The directory itself is not stored in the repository.

Parameters

Parameter Description Default
ceph_fsid The UUID for the Ceph cluster, passed to ceph-ansible 00000000-0000-0000-0000-000000000000
ceph_network_backend Address range for ceph's backend network 192.168.80.0/20
ceph_network_frontend Address range for ceph's frontend network 192.168.64.0/20
ceph_version The version of Ceph pacific
docker_registry Registry used by docker to fetch containers quay.io
docker_version The version of the Docker service. The 5: prefix must be prepended starting with version 18.09. 5:20.10.6
domain The Domain osism.test
fqdn_external External API FQDN api.osism.test
fqdn_internal Internal API FQDN api-int.osism.test
git_host The address of the used Git server on which this repository will be stored later github.com
git_port Port of the git repository 22
git_repository URI-Path to the git repository osism/cfg-cookiecutter
git_username Username of the git repository git
git_version Git Branch name master
ip_external The external ip address of the API 192.168.96.9
ip_internal the internal ip address of the API 192.168.32.9
manager_version The version of the osism-ansible container latest
name_servers List of nameservers { "values": ["9.9.9.9", "149.112.112.112"] }
ntp_servers List of NTP servers { "values": ["1.de.pool.ntp.org", "2.de.pool.ntp.org", "3.de.pool.ntp.org", "4.de.pool.ntp.org"] }
openstack_version The version of OpenStack wallaby
project_name Name of the first OpenStack project customer
with_ceph 1 to use Ceph, 0 to not use Ceph 1
with_vault 1 to use Ansible-Vault, 0 to not use Ansible-Vault 1

About

Cookiecutter template for an OSISM configuration repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.7%
  • Shell 23.3%