summaryrefslogtreecommitdiff
path: root/provisioning/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-02-09 15:47:49 +0100
committervarac <varacanero@zeromail.org>2016-02-09 15:47:49 +0100
commit722e3c8439c61beb229affcaf7174fe5cee92088 (patch)
tree6308767f3b253f92cff93b818f1a3b9bcb47d607 /provisioning/modules
parentecffe8699768b867765d382c41bc96e1067f3013 (diff)
Refactor vagrant provisioning scripts
so we can use the 'debian.pp' manifest to install the requirements for setting up the useragent in a non-vagrant env.
Diffstat (limited to 'provisioning/modules')
-rw-r--r--provisioning/modules/pixelated/manifests/source.pp16
1 files changed, 8 insertions, 8 deletions
diff --git a/provisioning/modules/pixelated/manifests/source.pp b/provisioning/modules/pixelated/manifests/source.pp
index c42a30b1..9529f761 100644
--- a/provisioning/modules/pixelated/manifests/source.pp
+++ b/provisioning/modules/pixelated/manifests/source.pp
@@ -1,4 +1,4 @@
-# install useragent from source
+# install requirements for setting up the useragent from source
class pixelated::source {
include phantomjs
@@ -8,7 +8,6 @@ class pixelated::source {
'nodejs-legacy',
'npm',
'python-dev',
- 'virtualenv',
'libffi-dev',
'libssl-dev',
'g++',
@@ -16,14 +15,15 @@ class pixelated::source {
'libfontconfig1',
'build-essential',
'ruby-compass']:
- ensure => latest
+ ensure => latest
}
- stage { 'install_pixelated': }
-
- class { 'pixelated::source::install_useragent' :
- stage => install_pixelated
+ # from jessie on, the 'virtualenv' cmd is provided
+ # by a seperate package that is recommended by
+ # 'python-virtualenv'
+ package { 'python-virtualenv':
+ ensure => latest,
+ install_options => [ '-o', 'APT::Install-Recommends=true'],
}
- Stage['main'] -> Stage['install_pixelated']
}