summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-06-02 17:44:35 -0400
committerMicah Anderson <micah@riseup.net>2013-06-11 10:05:36 -0400
commit14bd8cf734fec65d4f1e16bfe64710008bdac174 (patch)
tree5549b54e8b959ff7cdf8ef3849519a7ec8676d80 /puppet
parent6bcc3f1ff91111c9138213463f8af79e57d83501 (diff)
lint hosts.pp
Change-Id: If10470978ee31a398e0b88d8d98552c93d4706a2
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_config/manifests/hosts.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/puppet/modules/site_config/manifests/hosts.pp b/puppet/modules/site_config/manifests/hosts.pp
index 1e1590f5..83a1040d 100644
--- a/puppet/modules/site_config/manifests/hosts.pp
+++ b/puppet/modules/site_config/manifests/hosts.pp
@@ -1,11 +1,11 @@
class site_config::hosts() {
- $hosts = hiera('hosts','')
- $hostname = hiera('name')
- $domain_hash = hiera('domain')
+ $hosts = hiera('hosts','')
+ $hostname = hiera('name')
+ $domain_hash = hiera('domain')
$domain_public = $domain_hash['full_suffix']
- file { "/etc/hostname":
- ensure => present,
+ file { '/etc/hostname':
+ ensure => present,
content => $hostname
}
@@ -16,6 +16,8 @@ class site_config::hosts() {
file { '/etc/hosts':
content => template('site_config/hosts'),
- mode => '0644', owner => root, group => root;
+ mode => '0644',
+ owner => root,
+ group => root;
}
}