Skip to content

Commit 8bfc5ff

Browse files
committed
Fix puppet-lint errors and warnings
1 parent eaec0bc commit 8bfc5ff

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

manifests/init.pp

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,37 @@
5656

5757
exec { 'init phpbrew':
5858
command => '/usr/bin/sudo /usr/bin/phpbrew init',
59-
creates => "/root/.phpbrew/bashrc",
59+
creates => '/root/.phpbrew/bashrc',
6060
subscribe => File['/usr/bin/phpbrew'],
6161
refreshonly => true,
6262
}
6363

6464
file { $php_install_dir:
65-
ensure => 'directory',
65+
ensure => 'directory',
6666
require => Exec['init phpbrew'],
6767
}
6868

6969
# Specify where versions of PHP will be installed.
70-
file { "/root/.phpbrew/init":
70+
file { '/root/.phpbrew/init':
7171
content => "export PHPBREW_ROOT=${php_install_dir}",
7272
require => Exec['init phpbrew']
7373
}
7474

7575
# Load phpbrew configuration by default.
7676
file_line { 'add phpbrew to bashrc':
77-
path => '/root/.bashrc',
78-
line => "source /root/.phpbrew/bashrc",
77+
path => '/root/.bashrc',
78+
line => 'source /root/.phpbrew/bashrc',
7979
require => Exec['init phpbrew'],
8080
}
8181

8282
exec { 'update basbrc':
83-
command => "/bin/bash"
83+
command => '/bin/bash'
8484
}
8585

86-
file { "/root/.phpbrew/install_extension.sh":
86+
file { '/root/.phpbrew/install_extension.sh':
8787
ensure => present,
8888
mode => 'a+x',
89-
source => "puppet:///modules/phpbrew/install_extension.sh",
89+
source => 'puppet:///modules/phpbrew/install_extension.sh',
9090
require => Exec['init phpbrew']
9191
}
9292
}

manifests/install.pp

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@
3737
}
3838

3939
exec { "install php-${php_version}":
40-
command => "/usr/bin/sudo PHPBREW_ROOT=${install_dir} /usr/bin/phpbrew install --old php-${php_version} +default +intl ${extra_params}",
41-
creates => "${install_dir}/php/php-${php_version}/bin/php",
42-
timeout => 0,
40+
command => "/usr/bin/sudo PHPBREW_ROOT=${install_dir} /usr/bin/phpbrew install --old php-${php_version} +default +intl ${extra_params}",
41+
creates => "${install_dir}/php/php-${php_version}/bin/php",
42+
timeout => 0,
4343
}
4444

4545
file { "/usr/lib/cgi-bin/fcgiwrapper-${php_version}.sh":
46-
ensure => present,
47-
content => template("phpbrew/fcgiwrapper.sh.erb"),
46+
ensure => present,
47+
content => template('phpbrew/fcgiwrapper.sh.erb'),
4848
mode => 'a+x',
4949
require => Exec["install php-${php_version}"]
5050
}
5151

5252
file { "${install_dir}/php/php-${php_version}/lib/php/share":
53-
ensure => "directory",
53+
ensure => 'directory',
5454
require => Exec["install php-${php_version}"]
5555
}
5656

@@ -59,7 +59,7 @@
5959
"${install_dir}/php/php-${php_version}/var",
6060
"${install_dir}/php/php-${php_version}/var/db"
6161
]:
62-
ensure => "directory",
62+
ensure => 'directory',
6363
require => Exec["install php-${php_version}"]
6464
}
6565

0 commit comments

Comments
 (0)