From df9c4d5af39c0eb4f48a9540a688b34a36722d12 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 7 Jan 2015 11:45:05 +0100 Subject: added Vagrantfile and provision scripts - use leap jessie boxes for now - remove rng-tools hack that speeded up key generation from Vagrant provisioning we don't want to generate weak keys, even when it takes longer - set source box as default for 'vagrant up' - properly override vm.box_url for different providers --- provisioning/modules/pixelated/manifests/apt.pp | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 provisioning/modules/pixelated/manifests/apt.pp (limited to 'provisioning/modules/pixelated/manifests/apt.pp') diff --git a/provisioning/modules/pixelated/manifests/apt.pp b/provisioning/modules/pixelated/manifests/apt.pp new file mode 100644 index 00000000..434ae01e --- /dev/null +++ b/provisioning/modules/pixelated/manifests/apt.pp @@ -0,0 +1,52 @@ +# add the pixelated sources needed to install everything +class pixelated::apt { + + # pixelated repo + file { '/etc/apt/sources.list.d/pixelated.list': + content => "deb http://packages.pixelated-project.org/debian wheezy-snapshots main\ndeb http://packages.pixelated-project.org/debian wheezy main\n", + owner => 'root', + require => Exec[add_pixelated_key], + notify => Exec['apt_get_update'], + } + + file { '/tmp/0x287A1542472DC0E3_packages@pixelated-project.org.asc': + source => 'puppet:///modules/pixelated/0x287A1542472DC0E3_packages@pixelated-project.org.asc', + notify => Exec['add_pixelated_key'] + } + + exec{'add_pixelated_key': + command => '/usr/bin/apt-key add /tmp/0x287A1542472DC0E3_packages@pixelated-project.org.asc', + refreshonly => true, + require => File['/tmp/0x287A1542472DC0E3_packages@pixelated-project.org.asc'], + notify => Exec['apt_get_update'], + } + + # leap repo + file { '/etc/apt/sources.list.d/leap.list': + content => "deb http://deb.leap.se/0.6 wheezy main", + owner => 'root', + require => Exec[add_pixelated_key], + notify => Exec['apt_get_update'], + } + file { '/tmp/0x1E34A1828E20790_leap_archive_key': + source => 'puppet:///modules/pixelated/0x1E34A1828E20790_leap_archive_key', + notify => Exec['add_leap_key'] + } + exec{'add_leap_key': + command => '/usr/bin/apt-key add /tmp/0x1E34A1828E20790_leap_archive_key', + refreshonly => true, + require => File['/tmp/0x1E34A1828E20790_leap_archive_key'], + notify => Exec['apt_get_update'], + } + + package { 'leap-keyring': + ensure => latest, + require => Exec['apt_get_update'] + } + + exec { "apt_get_update": + command => '/usr/bin/apt-get -y update', + refreshonly => true, + } + +} -- cgit v1.2.3