Skip to content

Commit

Permalink
Merge pull request #7 from herqles-io/arrayfix
Browse files Browse the repository at this point in the history
Puppet4 is much stricter about arrays and strings, make all strings
  • Loading branch information
dugdigg committed Jan 14, 2016
2 parents 0ce6120 + 09d01d2 commit c0909af
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
5 changes: 2 additions & 3 deletions manifests/cli/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$module,
$repo=None,
$version='present',
$install_args=[],
$install_args,
$base_config={}
) {

Expand All @@ -15,14 +15,13 @@
$user = $herqles::user

if !defined(Python::Pip[$pkgname]) {
$_install_args_string = join($install_args, ' ')
python::pip { $pkgname:
ensure => $version,
pkgname => $pkgname,
url => $repo,
virtualenv => "${install_path}/venv",
owner => $user,
install_args => $_install_args_string,
install_args => $install_args,
}
}

Expand Down
10 changes: 3 additions & 7 deletions manifests/component.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$config,
$repo=None,
$version='present',
$install_args=[]
$install_args,
) {

require ::herqles
Expand All @@ -17,7 +17,6 @@
if $repo != None {
validate_string($repo)
}
validate_array($install_args)
validate_hash($config)

python::pip { $pkgname:
Expand Down Expand Up @@ -53,11 +52,8 @@

if $manage_service {
herqles::service { $name:
subscribe => [ File["${config_path}/${name}/config.yml"], File['/etc/sysconfig/herqles'] ],
require => [
File["${config_path}/${name}/config.yml"],
File['/etc/sysconfig/herqles']
]
subscribe => File["${config_path}/${name}/config.yml", '/etc/sysconfig/herqles' ],
require => File["${config_path}/${name}/config.yml", '/etc/sysconfig/herqles'],
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/framework.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
herqles::component { 'hq-framework':
pkgname => 'hq-framework',
repo => 'git+https://github.com/herqles-io/hq-framework.git',
install_args => [ '--process-dependency-links' ],
install_args => '--process-dependency-links',
version => $version,
config => $config,
}
Expand Down
3 changes: 1 addition & 2 deletions manifests/framework/framework_data.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$pkgname,
$version='present',
$repo=undef,
$install_args=[]
$install_args,
) {

validate_string($module)
Expand All @@ -12,6 +12,5 @@
if $repo != undef {
validate_string($repo)
}
validate_array($install_args)

}
2 changes: 1 addition & 1 deletion manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
herqles::component { 'hq-manager':
pkgname => 'hq-manager',
repo => 'git+https://github.com/herqles-io/hq-manager.git',
install_args => [ '--process-dependency-links' ],
install_args => '--process-dependency-links',
version => $version,
config => $config
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
herqles::component { 'hq-worker':
pkgname => 'hq-worker',
repo => 'git+https://github.com/herqles-io/hq-worker.git',
install_args => [ '--process-dependency-links' ],
install_args => '--process-dependency-links',
version => $version,
config => $config
}
Expand Down
3 changes: 1 addition & 2 deletions manifests/worker/worker_data.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$pkgname,
$version='present',
$repo=undef,
$install_args=[]
$install_args,
) {

validate_string($module)
Expand All @@ -12,6 +12,5 @@
if $repo != undef {
validate_string($repo)
}
validate_array($install_args)

}

0 comments on commit c0909af

Please sign in to comment.