Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17819

Using puppet to input password

$
0
0

This is just an example, don't ask why I am doing it, because I am not. However I just want to know how to do "fill in prompts" in puppet. So let's say in config.pp I have the following.

$user = 'testuser' exec {'change account password': command => "passwd $user", I want to change the pw for '123456' for example so it will have to do `123456` x2. path => ['/usr/local/bin','/bin/','/usr/bin/'] } 

How can I do the above?

submitted by /u/juniorsysadmin1
[link] [comments]

Viewing all articles
Browse latest Browse all 17819

Trending Articles