]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Coding style
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Apr 2013 16:32:41 +0000 (13:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Apr 2013 16:32:41 +0000 (13:32 -0300)
manifests/defines/ssh_config.pp
manifests/defines/ssh_create_key.pp
manifests/defines/ssh_known_hosts.pp
manifests/subsystem/initramfs.pp

index 62e1d661f06cb57cf10d29b753c3ec5007b9fdf4..79d96350a6ea80db803e0017cdf528a2a234d71a 100644 (file)
@@ -1,5 +1,9 @@
 # Manage ssh config for a particular user
-define ssh_config($owner, $home = '/home/$owner', $ssh_localhost_auth = false) {
+define ssh_config(
+  $owner,
+  $home               = '/home/$owner',
+  $ssh_localhost_auth = false
+) {
   include nodo::subsystem::ssh_folder
 
   file { "${home}/.ssh/config":
index e380b1891ef6c73c37585d1db346babef56fb07a..ec4bb67947128c4e147f4680f46687e3bd6e6976 100644 (file)
@@ -1,4 +1,9 @@
-define ssh_create_key($owner, $group, $keyfile = 'id_rsa', $home = '/home/$owner') {
+define ssh_create_key(
+  $owner,
+  $group,
+  $keyfile = 'id_rsa',
+  $home    = '/home/$owner'
+) {
   include nodo::subsystem::ssh_folder
 
   exec { "ssh-keygen-${owner}":
index 50ae87ecbfab4daa4f97477da3c14f5637cb00fa..84f25b2e0af18d9495d2cf549f7fd3e61a45f50b 100644 (file)
@@ -1,5 +1,9 @@
 # Manage known_hosts for a particular user
-define ssh_known_host($owner, $home = '/home/$owner', $ssh_localhost_auth = false) {
+define ssh_known_host(
+  $owner,
+  $home               = '/home/$owner',
+  $ssh_localhost_auth = false
+) {
   include nodo::subsystem::ssh_folder
 
   file { "${home}/.ssh/known_hosts":
index acbf1b77aacdd9b3bc35bf75348a5c2d10e3c1ab..ad12ae2091e11eef3accf5e2508841dac386250a 100644 (file)
@@ -1,7 +1,7 @@
 class nodo::subsystem::initramfs(
   $keymap = hiera('nodo::initramfs::keymap', 'absent')
 ) {
-  # initramfs config
+  # Image config
   file { "/etc/kernel-img.conf":
     owner   => "root",
     group   => "root",
@@ -10,7 +10,7 @@ class nodo::subsystem::initramfs(
     content => "do_initrd = Yes\n",
   }
 
-  # initramfs config
+  # Modules config
   file { "/etc/initramfs-tools/modules":
     owner   => "root",
     group   => "root",
@@ -19,7 +19,7 @@ class nodo::subsystem::initramfs(
     source  => "puppet:///modules/nodo/etc/initramfs-tools/modules",
   }
 
-  # keymap
+  # Keymap
   file { "/etc/initramfs-tools/conf.d/keymap.conf":
     ensure  => $keymap,
     content => "KEYMAP=Y\n",
@@ -28,7 +28,7 @@ class nodo::subsystem::initramfs(
     mode    => 0644,
   }
 
-  # update initramfs when needed
+  # Update initramfs when needed
   exec { "update-initramfs -v -t -u":
     subscribe   => [ File["/etc/initramfs-tools/modules"],
                      File["/etc/modprobe.d/blacklist"],