Skip to content
Snippets Groups Projects
Commit 7be36502 authored by schiermi's avatar schiermi
Browse files

Moved git2puppet into a dedicated file.

parent 7bbdae57
No related branches found
No related tags found
No related merge requests found
...@@ -13,3 +13,6 @@ ...@@ -13,3 +13,6 @@
[submodule "modules/cups"] [submodule "modules/cups"]
path = modules/cups path = modules/cups
url = https://github.com/mosen/puppet-cups.git url = https://github.com/mosen/puppet-cups.git
[submodule "modules/ntp"]
path = modules/ntp
url = https://github.com/puppetlabs/puppetlabs-ntp
Subproject commit 385e416269dfeb2729c09e9e986eddb473c5838b
#!/bin/bash
cd /etc/puppet
git pull
git submodule init
git submodule update
puppet apply /etc/puppet/manifests/site.pp
apt-get -y upgrade
...@@ -2,7 +2,7 @@ class persist { ...@@ -2,7 +2,7 @@ class persist {
file { '/usr/local/sbin/git2puppet': file { '/usr/local/sbin/git2puppet':
ensure => present, ensure => present,
content => "#!/bin/bash\ncd /etc/puppet && git pull && git submodule init && git submodule update && puppet apply /etc/puppet/manifests/site.pp\napt-get -y upgrade", source => 'puppet:///modules/persist/usr/local/sbin/git2puppet',
mode => '0755', mode => '0755',
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment