From df8029fd976c48bdc46cff7409079fa6a2917269 Mon Sep 17 00:00:00 2001 From: Ciaby Date: Wed, 27 May 2015 15:22:01 -0500 Subject: [PATCH] Added explicit management of the rhizomatica user Changed the default password --- modules/rhizo_base/manifests/init.pp | 1 + modules/rhizo_base/manifests/users.pp | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/rhizo_base/manifests/users.pp diff --git a/modules/rhizo_base/manifests/init.pp b/modules/rhizo_base/manifests/init.pp index 999a7aa..7477c21 100644 --- a/modules/rhizo_base/manifests/init.pp +++ b/modules/rhizo_base/manifests/init.pp @@ -111,6 +111,7 @@ class rhizo_base { include rhizo_base::openbsc include rhizo_base::lcr include rhizo_base::sudo + include rhizo_base::users #Rizhomatica scripts diff --git a/modules/rhizo_base/manifests/users.pp b/modules/rhizo_base/manifests/users.pp new file mode 100644 index 0000000..bc73e0a --- /dev/null +++ b/modules/rhizo_base/manifests/users.pp @@ -0,0 +1,21 @@ +# Class: rhizo_base::users +# +# This module manages the users on the BSCs. +# +# Parameters: none +# +# Actions: +# +# Requires: see Modulefile +# +# Sample Usage: +# +class rhizo_base::users { + user { 'rhizomatica': + ensure => present, + gid => 'rhizomatica', + home => '/home/rhizomatica', + password => '$6$rmdUFkJn$iR5BJ1RLrXmUVlXl7cwgcmB/HnGbXuyh.s9.JgTM1QFemtqBpICvi3iR9v2K2mZgGsqm1dOiwgpfFUnTKH/Zn0', + uid => '1000', + } + } \ No newline at end of file