From 9a5f69a671a0ad841d9914293efbdcef0e1b75bf Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 1 Oct 2020 17:30:24 -0300 Subject: Feat: dev environment using kvmx and puppet --- puppet/config/node/box.example.org.yaml | 2 +- puppet/config/node/links.example.org.yaml | 67 +++++++++++++++++++++++ puppet/config/secrets/node/links.example.org.yaml | 10 ++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 puppet/config/node/links.example.org.yaml create mode 100644 puppet/config/secrets/node/links.example.org.yaml (limited to 'puppet/config') diff --git a/puppet/config/node/box.example.org.yaml b/puppet/config/node/box.example.org.yaml index 657bce1..201de61 100644 --- a/puppet/config/node/box.example.org.yaml +++ b/puppet/config/node/box.example.org.yaml @@ -2,7 +2,7 @@ # # Nodo # -nodo::role: 'dev::virtual' +nodo::role: 'web' # # Classes diff --git a/puppet/config/node/links.example.org.yaml b/puppet/config/node/links.example.org.yaml new file mode 100644 index 0000000..449feff --- /dev/null +++ b/puppet/config/node/links.example.org.yaml @@ -0,0 +1,67 @@ +--- +# +# Nodo +# +nodo::role: 'web' + +# +# Classes +# +classes: + - 'php' + +# +# MySQL +# +mysql::server::implementation: 'mariadb-server' +mysql::implementation: 'mariadb-client' + +# +# Backup +# +nodo::subsystem::backup::localhost : false +nodo::subsystem::backup::encryptkey : 'none' +nodo::subsystem::backup::password : 'hackme' + +# +# Websites +# +#websites::default_db : 'dbname' +#websites::default_db::password : 'hackme' + +# +# Apache +# +#apache::default_folder : '/srv/kvmx' +#apache::default_user : 'user' +#apache::default_group : 'user' + +# Manage your app +#apache::sites: +# myapp: +# docroot : "/vagrant/" +# server_alias : 'myapp vagrant localhost' +# use : [ "Site myapp" ] +# tag : 'all' +# owner : vagrant +# group : vagrant +# mpm_user : vagrant +# mpm_group : vagrant +# password : '$5$NZfZqcdyZ3Xt$.kfZejriEJP3fc6RU0gBGEzMPQ/c3XiowVImB6VDrtD' +# shell : '/bin/bash' +apache::sites: + semanticscuttle: + docroot : '/srv/shared/www' + server_alias : '10.0.2.2' + allow_override : 'All' + owner : 'user' + group : 'user' + error_log : true + custom_log : true + custom_log_format : 'custom' + custom_directives : > + + Options Indexes Includes FollowSymLinks MultiViews + AllowOverride All + Require all granted + diff --git a/puppet/config/secrets/node/links.example.org.yaml b/puppet/config/secrets/node/links.example.org.yaml new file mode 100644 index 0000000..182dd01 --- /dev/null +++ b/puppet/config/secrets/node/links.example.org.yaml @@ -0,0 +1,10 @@ +# +# MySQL +# +# The following password is public information and therefore +# shall not be user on production. +mysql::server::rootpw: 'k8tKW9Y14Tr6xoqRDJbMzt1hackme' + +database::instances: + semanticscuttle: + password: 'LLIX7nN9t7ymhackme' -- cgit v1.2.3