blob: fd109c131f3f3f45ed5644a0df095c04cba572ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
#
# missing: header, licence, usage
apt-get install lsb-release git
# we need puppet from backports
dist="`lsb_release -cs`"
# enable backports for puppet + facter
[ -f /etc/apt/sources.list.d/$dist-backports.list ] || echo "deb http://backports.debian.org/debian-backports/ $dist-backports main contrib non-free">/etc/apt/sources.list.d/$dist-backports.list
# enable debian testing for ruby-hiera-puppet
cat > /etc/apt/preferences.d/wheezy <<DELIM
Package: *
Pin: release o=Debian,n=wheezy
Pin-Priority: 2
DELIM
apt-get update
apt-get install -y -t $dist-backports facter puppet
apt-get install ruby-hiera-puppet ruby-hiera
puppet apply --modulepath=$PWD/puppet/modules $PWD/puppet/manifests/site.pp $@
|