]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Move external modules to other place
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 28 Apr 2018 14:59:07 +0000 (16:59 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 28 Apr 2018 14:59:07 +0000 (16:59 +0200)
23 files changed:
.gitmodules
external_modules/apache [moved from modules/apache with 100% similarity]
external_modules/archive [moved from modules/archive with 100% similarity]
external_modules/concat [moved from modules/concat with 100% similarity]
external_modules/cron [moved from modules/cron with 100% similarity]
external_modules/fail2ban [moved from modules/fail2ban with 100% similarity]
external_modules/inifile [moved from modules/inifile with 100% similarity]
external_modules/letsencrypt [moved from modules/letsencrypt with 100% similarity]
external_modules/logrotate [moved from modules/logrotate with 100% similarity]
external_modules/nodejs [moved from modules/nodejs with 100% similarity]
external_modules/pacman [moved from modules/pacman with 100% similarity]
external_modules/postgresql [moved from modules/postgresql with 100% similarity]
external_modules/reboot [moved from modules/reboot with 100% similarity]
external_modules/redis [moved from modules/redis with 100% similarity]
external_modules/ssh [moved from modules/ssh with 100% similarity]
external_modules/ssh_keygen [moved from modules/ssh_keygen with 100% similarity]
external_modules/ssl [moved from modules/ssl with 100% similarity]
external_modules/stdlib [moved from modules/stdlib with 100% similarity]
external_modules/sudo [moved from modules/sudo with 100% similarity]
external_modules/systemd [moved from modules/systemd with 100% similarity]
external_modules/xmpp [moved from modules/xmpp with 100% similarity]
modules/base_installation/templates/puppet/puppet.conf.erb
scripts/arch_install_script.sh

index c75f8038fa9525a599ed5abc182b373d47e7c7ab..357cc1dbe45dfa4f05a9605f7ab097f784f6dc6d 100644 (file)
@@ -1,63 +1,63 @@
 [submodule "modules/stdlib"]
-       path = modules/stdlib
+       path = external_modules/stdlib
        url = git://git.immae.eu/github/puppetlabs/puppetlabs-stdlib.git
 [submodule "modules/reboot"]
-       path = modules/reboot
+       path = external_modules/reboot
        url = git://git.immae.eu/github/puppetlabs/puppetlabs-reboot.git
 [submodule "modules/systemd"]
-       path = modules/systemd
+       path = external_modules/systemd
        url = git://git.immae.eu/github/jkroepke/puppet-systemd.git
 [submodule "modules/inifile"]
-       path = modules/inifile
+       path = external_modules/inifile
        url = git://git.immae.eu/github/puppetlabs/puppetlabs-inifile.git
 [submodule "modules/sudo"]
-       path = modules/sudo
+       path = external_modules/sudo
        url = git://git.immae.eu/github/saz/puppet-sudo.git
 [submodule "modules/ssh"]
-       path = modules/ssh
+       path = external_modules/ssh
        url = git://git.immae.eu/github/saz/puppet-ssh.git
 [submodule "modules/concat"]
-       path = modules/concat
+       path = external_modules/concat
        url = git://git.immae.eu/github/puppetlabs/puppetlabs-concat.git
 [submodule "modules/fail2ban"]
-       path = modules/fail2ban
+       path = external_modules/fail2ban
        url = git://git.immae.eu/github/lelutin/puppet-fail2ban
 [submodule "modules/logrotate"]
-       path = modules/logrotate
+       path = external_modules/logrotate
        url = git://git.immae.eu/github/yo61/puppet-logrotate.git
 [submodule "modules/pacman"]
-       path = modules/pacman
+       path = external_modules/pacman
        url = git://git.immae.eu/github/aboe76/puppet-pacman
 [submodule "modules/postgresql"]
-       path = modules/postgresql
+       path = external_modules/postgresql
        url = git://git.immae.eu/github/puppetlabs/puppetlabs-postgresql.git
 [submodule "modules/archive"]
-       path = modules/archive
+       path = external_modules/archive
        url = git://git.immae.eu/github/voxpupuli/puppet-archive.git
 [submodule "modules/apache"]
-       path = modules/apache
+       path = external_modules/apache
        url = git://git.immae.eu/github/puppetlabs/puppetlabs-apache.git
 [submodule "modules/letsencrypt"]
-       path = modules/letsencrypt
+       path = external_modules/letsencrypt
        url = git://git.immae.eu/github/voxpupuli/puppet-letsencrypt.git
 [submodule "modules/nodejs"]
-       path = modules/nodejs
+       path = external_modules/nodejs
        url = git://git.immae.eu/github/voxpupuli/puppet-nodejs
 [submodule "python/ovh"]
        path = python/ovh
        url = git://git.immae.eu/github/ovh/python-ovh
 [submodule "modules/ssh_keygen"]
-       path = modules/ssh_keygen
+       path = external_modules/ssh_keygen
        url = git://git.immae.eu/github/voxpupuli/puppet-ssh_keygen
 [submodule "modules/xmpp"]
-       path = modules/xmpp
+       path = external_modules/xmpp
        url = git://git.immae.eu/github/jamtur01/puppet-xmpp
 [submodule "modules/ssl"]
-       path = modules/ssl
+       path = external_modules/ssl
        url = git://git.immae.eu/github/fnerdwq/puppet-ssl
 [submodule "modules/cron"]
-       path = modules/cron
+       path = external_modules/cron
        url = git://git.immae.eu/github/voxpupuli/puppet-cron
 [submodule "modules/redis"]
-       path = modules/redis
+       path = external_modules/redis
        url = git://git.immae.eu/github/arioch/puppet-redis
similarity index 100%
rename from modules/apache
rename to external_modules/apache
similarity index 100%
rename from modules/archive
rename to external_modules/archive
similarity index 100%
rename from modules/concat
rename to external_modules/concat
similarity index 100%
rename from modules/cron
rename to external_modules/cron
similarity index 100%
rename from modules/fail2ban
rename to external_modules/fail2ban
similarity index 100%
rename from modules/inifile
rename to external_modules/inifile
similarity index 100%
rename from modules/logrotate
rename to external_modules/logrotate
similarity index 100%
rename from modules/nodejs
rename to external_modules/nodejs
similarity index 100%
rename from modules/pacman
rename to external_modules/pacman
similarity index 100%
rename from modules/reboot
rename to external_modules/reboot
similarity index 100%
rename from modules/redis
rename to external_modules/redis
similarity index 100%
rename from modules/ssh
rename to external_modules/ssh
similarity index 100%
rename from modules/ssl
rename to external_modules/ssl
similarity index 100%
rename from modules/stdlib
rename to external_modules/stdlib
similarity index 100%
rename from modules/sudo
rename to external_modules/sudo
similarity index 100%
rename from modules/systemd
rename to external_modules/systemd
similarity index 100%
rename from modules/xmpp
rename to external_modules/xmpp
index 37eba8ef0cbc5d151f30048e3df4c03299fa8700..03b33bba119d8fedbf9e3c4947648d486dae3708 100644 (file)
@@ -4,6 +4,9 @@ reports = store,xmpp
 <% else %>
 reports = store
 <% end %>
+
+basemodulepath = <%= @puppet_code_path %>/modules:<%= @puppet_code_path %>/external_modules
+
 ssldir = <%= @puppet_ssl_path %>
 
 environment = <%= @environment %>
index a16b796a4cbd905285a3c34bf5f4e6162fa12208..2d0d695514c6797c9119e889c11b53c1f4f3ca7b 100755 (executable)
@@ -12,7 +12,7 @@ pacman-key --populate archlinux
 git clone -b $git_branch --recursive https://git.immae.eu/perso/Immae/Projets/Puppet.git $CODE_PATH
 
 export FACTER_in_chroot="yes"
-puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
+puppet apply --environment $environment --tags base_installation --modulepath $CODE_PATH/modules:$CODE_PATH/external_modules --test $CODE_PATH/manifests/site.pp
 # The password seed requires puppet to be run twice
-puppet apply --environment $environment --tags base_installation --test $CODE_PATH/manifests/site.pp
+puppet apply --environment $environment --tags base_installation --modulepath $CODE_PATH/modules:$CODE_PATH/external_modules --test $CODE_PATH/manifests/site.pp