changing the root password on PUPPET master and init.pp

397 views
Skip to first unread message

DJames

unread,
Jan 10, 2013, 4:55:07 PM1/10/13
to puppet...@googlegroups.com
I understand that you must change the password on the host itself first, then change the password in /etc/puppet/modules/users/manifests/init.pp

what makes the password encrypted? Do i just put the non-encrypted new root password in the following sections? then puppet encrypts it?


lass users {
   case $operatingsystem {
      'RedHat', 'CentOS': {
         user {
            "root":
               comment  => '[ROOT]',
               uid      => 0,
               gid      => "root",
               home     => "/root",

password => $ ? {
                  4 => '',
                  5 => '',
                  6 => '',




Darin Perusich

unread,
Jan 11, 2013, 8:23:10 AM1/11/13
to puppet...@googlegroups.com
You need to supply the encrypted password in the manifest.

--
Later,
Darin
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/mEeGNkFMgusJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

DJames

unread,
Jan 11, 2013, 9:15:59 AM1/11/13
to puppet...@googlegroups.com
my existing setup ( sorry im new to this) i noticed each section for encrypted password is different, what change each value?
I was told put the same password (encrypted) in each 4 sections after i change the root password on the host. see below, i replaced the existing encryption with
"differ1, differ2, differ3, differ4 (solaris) values for e.g.)



case $operatingsystem {
      'RedHat', 'CentOS': {
         user {
            "root":
               comment  => '[ROOT]',
               uid      => 0,
               gid      => "root",
               home     => "/root",
               password => $lsbmajdistrelease ? {

                  4 => 'differ1',
                  5 => ''differ2',
                  6 => ''differ3',


 'Solaris': {
         user {
            "root":
               comment  => 'Super-User',
               uid      => 0,
               gid      => "0",
               home     => "/",
               password => differ4',
               shell    => "/bin/bash";
Reply all
Reply to author
Forward
0 new messages