diff options
author | varac <varacanero@zeromail.org> | 2015-01-19 10:36:16 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-01-19 10:36:16 +0100 |
commit | ab65462fecdab91b2f5474790ebac7c4c641a424 (patch) | |
tree | d22c5cbf20963c7b6a1b2f6985414be368aad2c5 /provisioning/modules/pixelated/manifests | |
parent | 2cbe39d723d429a8aea7601d37da8b694f77a81b (diff) | |
parent | df9c4d5af39c0eb4f48a9540a688b34a36722d12 (diff) |
Merge branch 'vagrant_multimachine'
Diffstat (limited to 'provisioning/modules/pixelated/manifests')
4 files changed, 97 insertions, 0 deletions
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, + } + +} diff --git a/provisioning/modules/pixelated/manifests/common.pp b/provisioning/modules/pixelated/manifests/common.pp new file mode 100644 index 00000000..b7a7726a --- /dev/null +++ b/provisioning/modules/pixelated/manifests/common.pp @@ -0,0 +1,3 @@ +# applied to both vagrant boxed +class pixelated::common { +} diff --git a/provisioning/modules/pixelated/manifests/source.pp b/provisioning/modules/pixelated/manifests/source.pp new file mode 100644 index 00000000..a36caf96 --- /dev/null +++ b/provisioning/modules/pixelated/manifests/source.pp @@ -0,0 +1,37 @@ +class pixelated::source { + + package { [ + 'git', + 'nodejs-legacy', + 'npm', + 'python-dev', + 'python-virtualenv', + 'libffi-dev', + 'g++', + 'ruby-dev']: + ensure => latest + } + + package { 'compass': + ensure => installed, + provider => 'gem' + } + + stage { 'install_pixelated': } + + class { 'install_pixelated' : + stage => install_pixelated + } + + class install_pixelated { + exec { 'install-pixelated': + environment => 'USERNAME=vagrant', + command => '/bin/bash /vagrant/install-pixelated.sh', + cwd => '/vagrant', + user => 'vagrant', + timeout => 0 + } + } + + Stage['main'] -> Stage['install_pixelated'] +} diff --git a/provisioning/modules/pixelated/manifests/useragent.pp b/provisioning/modules/pixelated/manifests/useragent.pp new file mode 100644 index 00000000..abd46b01 --- /dev/null +++ b/provisioning/modules/pixelated/manifests/useragent.pp @@ -0,0 +1,5 @@ +class pixelated::useragent { + package { 'pixelated-user-agent': + ensure => latest, + } +} |