Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All manner of things that I can't be arsed to split into loads of com…
…mits
- Loading branch information
James Laver
committed
Oct 22, 2013
1 parent
552e5bb
commit 1dd3c8e
Showing
4 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
class oyster::pbrew { | ||
|
||
define lib ($lib) { | ||
exec { | ||
"oyster_pbrew_lib_${lib}": | ||
command => "/bin/sh -c 'umask 022; /usr/bin/env PERLBREW_ROOT=${perlbrew::params::perlbrew_root} ${perlbrew::params::perlbrew_bin} lib create oyster@${lib}'", | ||
user => 'vagrant', | ||
group => 'vagrant', | ||
timeout => 10, | ||
creates => "/home/vagrant/.perlbrew/libs/oyster@${lib}", | ||
require => Class['perlbrew'], | ||
} | ||
} | ||
|
||
define install_module($lib) { | ||
exec { | ||
"oyster_pbrew_install_module_${name}": | ||
command => "/bin/sh -c 'umask 022; /usr/bin/env PERLBREW_ROOT=${perlbrew::params::perlbrew_root} PERLBREW_LIB=$lib PERLBREW_PERL=oyster ${perlbrew::params::perlbrew_root}/perls/oyster/bin/cpanm ${name}'", | ||
# Need to figure out a good one for this | ||
# unless => "${perlbrew::params::perlbrew_root}/perls/oyster/bin/perl -m${name} -e1", | ||
timeout => 1800, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
|
||
class oyster::perl { | ||
include perlbrew | ||
|
||
class {'oyster::pbrew':} | ||
|
||
package {'patchperl': | ||
name => 'libdevel-patchperl-perl', | ||
} | ||
} -> | ||
|
||
perlbrew::build {'oyster': | ||
version => 'perl-5.18.1', | ||
after => Package['patchperl'] | ||
} | ||
} -> | ||
|
||
perlbrew::install_cpanm {'oyster':} | ||
perlbrew::install_cpanm {'oyster':} -> | ||
|
||
perlbrew::install_module{[ | ||
'Module::Starter', | ||
'Moo', | ||
]: | ||
perl => 'oyster' | ||
oyster::pbrew::lib {'oyster': | ||
lib => 'oyster' | ||
} -> | ||
|
||
oyster::pbrew::install_module {'Acme::Code::Police': | ||
lib => 'oyster', | ||
} | ||
|
||
} |