From 1a0ab66327c46013150a4b25cd8e24e99a5c0984 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 1 Oct 2020 15:11:27 -0300 Subject: Feat: puppet: adds sample Puppefile --- share/templater/puppet/files/Puppetfile.dist | 48 ++++++++++++++++++++++++++++ share/templater/puppet/setup | 4 +++ 2 files changed, 52 insertions(+) create mode 100644 share/templater/puppet/files/Puppetfile.dist diff --git a/share/templater/puppet/files/Puppetfile.dist b/share/templater/puppet/files/Puppetfile.dist new file mode 100644 index 0000000..6aaf4af --- /dev/null +++ b/share/templater/puppet/files/Puppetfile.dist @@ -0,0 +1,48 @@ +# Local modules +mod 'site_nodo', :local => true + +# Basic modules +mod "augeas", + :git => "https://git.fluxo.info/puppet-augeas" +mod "backup", + :git => "https://git.fluxo.info/puppet-backup" +mod "backupninja", + :git => "https://git.fluxo.info/puppet-backupninja", + :ref => "develop" +mod "concat", + :git => "https://git.fluxo.info/puppet-concat" +mod "cron", + :git => "https://git.fluxo.info/puppet-cron" +mod "domain_check", + :git => "https://git.fluxo.info/puppet-domain_check" +mod "exim", + :git => "https://git.fluxo.info/puppet-exim" +mod "lsb", + :git => "https://git.fluxo.info/puppet-lsb" +mod "nodo", + :git => "https://git.fluxo.info/puppet-nodo" +mod "rsyslog", + :git => "https://git.fluxo.info/puppet-rsyslog" +mod "shellprompt", + :git => "https://git.fluxo.info/shellprompt" +mod "sshd", + :git => "https://git.fluxo.info/puppet-sshd", + :ref => "develop" +mod "ssl", + :git => "https://git.fluxo.info/puppet-ssl" +mod "stdlib", + :git => "https://git.fluxo.info/puppet-stdlib" +mod "user", + :git => "https://git.fluxo.info/puppet-user" + +# Additional modules +#mod "mysql", +# :git => "https://git.fluxo.info/puppet-mysql" +#mod "database", +# :git => "https://git.fluxo.info/puppet-database" +#mod "apache", +# :git => "https://git.fluxo.info/puppet-apache" +#mod "php", +# :git => "https://git.fluxo.info/puppet-php" +#mod "drupal", +# :git => "https://git.fluxo.info/puppet-drupal" diff --git a/share/templater/puppet/setup b/share/templater/puppet/setup index 402558c..97d4e95 100755 --- a/share/templater/puppet/setup +++ b/share/templater/puppet/setup @@ -36,6 +36,10 @@ function templater_puppet { if [ -e "puppet/config/node/box.example.org.yaml" ]; then cp puppet/config/node/box.example.org.yaml puppet/config/node/$PROJECT.example.org.yaml fi + + if [ -e "puppet/Puppetfile" ]; then + cp $SHARE/puppet/files/Puppetfile.dist puppet + fi else templater_echo "Puppet already set" fi -- cgit v1.2.3