Skip to content

Commit

Permalink
replacing double quotes with single quotes where not needed (Puppet s…
Browse files Browse the repository at this point in the history
…tyle warning)
  • Loading branch information
kreczko committed Aug 20, 2013
1 parent 5c45a54 commit 32f592c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 43 deletions.
20 changes: 10 additions & 10 deletions manifests/admin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -77,33 +77,33 @@

file{"/etc/voms-admin-puppet/voms-admin-add-admin-${vo}.sh":
ensure => file,
content => template("voms/voms-admin-add-admin.sh.erb"),
mode => "0700",
content => template('voms/voms-admin-add-admin.sh.erb'),
mode => '0700',
}


file{"/etc/voms-admin-puppet/voms-admin-remove-${vo}.sh":
ensure => file,
content => template("voms/voms-admin-remove.sh.erb"),
mode => "0700",
content => template('voms/voms-admin-remove.sh.erb'),
mode => '0700',
}

file{"/etc/voms-admin-puppet/voms-admin-create-${vo}.sh":
ensure => file,
content => template("voms/voms-admin-create.sh.erb"),
mode => "0700",
content => template('voms/voms-admin-create.sh.erb'),
mode => '0700',
}

file{"/etc/voms-admin-puppet/voms-admin-upgrade-${vo}.sh":
ensure => file,
content => template("voms/voms-admin-upgrade.sh.erb"),
mode => "0700",
content => template('voms/voms-admin-upgrade.sh.erb'),
mode => '0700',
}

file{"/etc/voms-admin-puppet/voms-admin-install-${vo}.sh":
ensure => file,
content => template("voms/voms-admin-install.sh.erb"),
mode => "0700",
content => template('voms/voms-admin-install.sh.erb'),
mode => '0700',
notify => Exec["/etc/voms-admin-puppet/voms-admin-install-${vo}.sh"]
}

Expand Down
18 changes: 9 additions & 9 deletions manifests/admin/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@
$tomcat_filelimit = $voms::params::tomcat_filelimit
) inherits voms::params {

file{"/etc/voms-admin-puppet":
file{'/etc/voms-admin-puppet':
ensure => directory,
purge => true,
recurse => true
}
file{"/etc/voms-admin-puppet/README":
file{'/etc/voms-admin-puppet/README':
ensure => file,
content => template('voms/README.erb'),
require => File["/etc/voms-admin-puppet"]
require => File['/etc/voms-admin-puppet']
}
file{"/etc/grid-security/tomcat-hostcert.pem":
file{'/etc/grid-security/tomcat-hostcert.pem':
ensure => file,
source => "file:///etc/grid-security/hostcert.pem",
source => 'file:///etc/grid-security/hostcert.pem',
mode => 0644,
owner => $tomcatuser,
group => root,
notify => Service['tomcat']
}
file{"/etc/grid-security/tomcat-hostkey.pem":
file{'/etc/grid-security/tomcat-hostkey.pem':
ensure => file,
source => "file:///etc/grid-security/hostkey.pem",
source => 'file:///etc/grid-security/hostkey.pem',
mode => 0400,
owner => $tomcatuser,
group => root,
Expand All @@ -47,7 +47,7 @@
group => root,
notify => Service['tomcat']
}
file{"/usr/share/voms-admin":
file{'/usr/share/voms-admin':
ensure => directory,
}

Expand Down Expand Up @@ -95,7 +95,7 @@
notify => Service['tomcat']
}
if $tomcat_filelimit {
file{"/etc/security/limits.d/90-tomcat.conf":
file{'/etc/security/limits.d/90-tomcat.conf':
ensure => file,
owner => root,
group => root,
Expand Down
16 changes: 8 additions & 8 deletions manifests/admin/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
require => Yumrepo['emi']
}

yumrepo{"emi":
descr => "EMI Repository for voms-admin at least.",
yumrepo{'emi':
descr => 'EMI Repository for voms-admin at least.',
baseurl => "${emirepo}",
gpgcheck => 0,
enabled => 1,
Expand All @@ -21,8 +21,8 @@
require => Yumrepo['emiupdates']

}
yumrepo{"emiupdates":
descr => "EMI Updates Repository for voms-admin at least.",
yumrepo{'emiupdates':
descr => 'EMI Updates Repository for voms-admin at least.',
baseurl => "${emiupdatesrepo}",
gpgcheck => 0,
enabled => 1,
Expand All @@ -31,13 +31,13 @@

}

file{"/etc/yum.repos.d/emi.repo":
file{'/etc/yum.repos.d/emi.repo':
ensure => file,
require => Yumrepo["emi"]
require => Yumrepo['emi']
}
file{"/etc/yum.repos.d/emiupdates.repo":
file{'/etc/yum.repos.d/emiupdates.repo':
ensure => file,
require => Yumrepo["emiupdates"]
require => Yumrepo['emiupdates']
}


Expand Down
24 changes: 12 additions & 12 deletions manifests/core.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
define voms::core($vo=$name,
$port,
$issuer=$::fqdn,
$vomstimeout="86400",
$vomstimeout='86400',
$sqlhost='localhost',
$sqldbname="${name}_db",
$sqlport=3306,
Expand All @@ -57,9 +57,9 @@

file{"/etc/voms/${vo}":
ensure => directory,
mode => "0755",
owner => "root",
group => "root",
mode => '0755',
owner => 'root',
group => 'root',
purge => true,
recurse => true,
require => File['/etc/voms']
Expand All @@ -68,20 +68,20 @@
file{"/etc/voms/${vo}/voms.conf":
ensure => file,
content => template('voms/voms.conf.erb'),
mode => "0644",
owner => "root",
group => "root",
notify => Service["voms"],
mode => '0644',
owner => 'root',
group => 'root',
notify => Service['voms'],
require => File["/etc/voms/${vo}"]
}
# The package creates the voms user below.
file{"/etc/voms/${vo}/voms.pass":
ensure => file,
content => "${sqlpwd}\n",
mode => "0640",
owner => "voms",
group => "voms",
notify => Service["voms"],
mode => '0640',
owner => 'voms',
group => 'voms',
notify => Service['voms'],
require => [File["/etc/voms/${vo}"],Package['voms-server']]
}
@@database_user{"${sqlusername}@${::fqdn}":
Expand Down
8 changes: 4 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Install voms-clients package and sets up a few directories.
#
class voms::install {
package { "voms-clients":
package { 'voms-clients':
ensure => latest,
require => Package["lcg-CA"],
require => Package['lcg-CA'],
}

file{'/etc/grid-security/vomsdir':
Expand All @@ -15,7 +15,7 @@
mode => 0755,
purge => true,
recurse => true,
require => Package["lcg-CA"],
require => Package['lcg-CA'],
}
file{'/etc/vomses':
ensure => directory,
Expand All @@ -24,7 +24,7 @@
mode => 0755,
purge => true,
recurse => true,
require => Package["lcg-CA"],
require => Package['lcg-CA'],
}

}

0 comments on commit 32f592c

Please sign in to comment.