[Puppet Users] Re: Puppet Dashboard

2013-03-01 Thread siva kumar
Dear Niraj, 
Could you please share the steps to configure the puppet dashboard... 
pre/post configuration details. Did we need to setup new web/mysql servers?
 

On Wednesday, April 4, 2012 5:57:00 PM UTC+5:30, niraj wrote:
>
> Hi All, 
>   I have somehow managed to configure the puppet dashboard, but it 
> is not displaying the nodes and the classes in the dashboard. It is 
> completely empty. Any one has any idea of configuring puppet dashboard 
> so that it displays all the nodes, classes, and reports/ I am newbie 
> so please explain in a little brief. 
>
>
> Regards 
> Niraj K.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Puppet-dashboard(open source)

2013-03-01 Thread siva kumar
Dear Garg, 

Could you pleas share steps to install and configure Puppet-dashboard(open 
source).  

Thanks & Regards, 

Shivs

On Tuesday, February 19, 2013 2:45:48 PM UTC+5:30, Mamta Garg wrote:
>
> Hi ,
>
> I am working with puppet open source.I have setup puppet dashboard.
> But its is not showing any agent node there.Anyone guide me for the same?
>
> -- 
> Thanks and Regards,
> Mamta Garg
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Creating user with random password (only once)

2012-10-30 Thread siva kumar
Dear Werner,
 
Good Morning !
 
I am also working with User Module in puppet (New to the puppet) ... But i 
am not getting how /where to implement randome password generation.
Below is my Module:
 
/etc/puppetlabs/puppet/modules/user/manifests/user.pp  :
 
#cat user.pp
define add_user ( $name, $uid, $groups, $shell, $password, $sshkeytype, 
$sshkey,$password_max_age, $password_min_age ) {
$username = $title
user { $username:
comment => "$name",
home=> "/home/$username",
shell   => "/bin/bash",
uid => $uid,
password_max_age => "$password_max_age",
password_min_age => "$password_min_age"
}
group { $username:
gid => $uid,
require => user[$username]
}
file { "/home/$username/":
ensure  => directory,
owner   => $username,
group   => $username,
mode=> 750,
require => [ user[$username], group[$username] ]
}
file { "/home/$username/.ssh":
ensure  => directory,
owner   => $username,
group   => $username,
mode=> 700,
require => file["/home/$username/"]
}

file { "/home/$username/.ssh/authorized_keys":
ensure  => present,
owner   => $username,
group   => $username,
mode=> 600,
require => file["/home/$username/"]
}
ssh_authorized_key{ $username:
user => "$username",
ensure => present,
type => "$sshkeytype",
key => "$sshkey",
name => "$username"
}
}

/etc/puppetlabs/puppet/manifests/nodes.pp
 
node 'alvtutl032.wm.com' {
 user { installer:
  ensure => "absent"
 }
add_user { apple1:
name=> "WM_admin_user",
uid  => "3334",
password_min_age => '2',
password_max_age => '8',
password =>'$1$7NwLmsAf$25L8RI8v5gbirkPKLSulE/',
shell => "/bin/bash",
groups => ['apple1'],
type => "ssh-dss",
sshkey => 
"B3NzaC1kc3MAAACBAJzMVL4afDQBJ3rcM9LlHqxg0rmkWDwoWehS4nIpBLJL9qGoyR1YBzPvpD1VufsUqgUXH9dYdfaiVum4IaTgyu2Tb0ezR4Nx2Jkcnp+8jFh/Cys3zgMvzJaIw/Au45E
9h4vBdwvouj1Sg0YaY5mGuKZ2w121uPLawjc3DJsNSc+jFQCb7+Vtir8w+o/CIDiSPXr6MVj16QAAAIBFHMnBixvQaxekLK70eR9TgYUAXsh0MHT8VT+XMUWlOC8u8yVEOTDzrU1ZL2vNWo4NZL6ex9ffx
0JRS5hSCU/o8aVcoC4viCC7SGmntNb0nQo+iKUyTQbGcmMoPG9lO498prML66GbOYWzTedc4XT683kyWV4k0iVixyvLsfLnIB4PmZfjdTtYwC7cE/upvfC/HWpKHHAn66YW6PRTCwZPqCd2AvHAMX/l7nb
k1u+BL0YtymawzNT97FcYuvM1UWrJ+fT8isTyHsoUkf76irVxcTBH0SReChHbYeWa2bATEvaj0u2597H4O7qYHJ6IZpTTAeWP0EeKDABfonAr+ZJw==",
}
exec { "first_login_password_ch":
command => "/usr/bin/chage -d 0 apple1",
path=> "/usr/bin/chage"
}
}
+
 
random password script:
 
#!/bin/bash
# random password generator by typedeaF
# Sets the maximum size of the password the script will generate
MAXSIZE=15
# I put escape chars on all the non alpha-numeric characters just for 
precaution
array1=(
q w e r t y u i o p a s d f g h j k l z x c v b n m Q W E R T Y U I O P A S 
D
F G H J K L Z X C V B N M 1 2 3 4 5 6 7 8 9 0 ! @ # $ % ^ & * ( )
)
# Used in conjunction with modulus to keep random numbers in range of the 
array size
MODNUM=${#array1[*]}
# Keeps track of the number characters in the password we have generated
pwd_len=0
while [ $pwd_len -lt $MAXSIZE ]
do
  x=$(($RANDOM%500))
  y=0
  while [ $y -lt $x ]
  do
((y++))
index=$(($RANDOM%$MODNUM))
echo -n "${array1[$index]}"
  done
  ((pwd_len++))
done
exit 0
 
I dont know how to integrate with puppet module ... Your help is much 
appreciated
 
 
Thanks & Regards,
 
Siva Kumar S.

On Wednesday, February 8, 2012 1:30:09 PM UTC-6, wernerbahlke wrote:

> Hi, 
>
> I want to create a user with a random password. Is there a way to only 
> execute the manifest once when the user does not exist but not once 
> the user is created? 
>
> I know how to create a random password and can use generate to execute 
> this function (or make it a custom fact provided I get this fact 
> executed). 
>
> So far I call an add_user method

[Puppet Users] Re: User management

2012-10-23 Thread siva kumar
Dear Sunner, 
 
Good Morning !
 
I am shiva . Right now i m working with Puppet User Management Module. And 
i saw your post the same kind of module i looking for. Its very usefull if 
you share you user module to me, Thanks 
 
Thanks & Regards,
 
Shiva...

On Thursday, November 25, 2010 12:54:50 AM UTC-6, Sunner wrote:

> Hi people.
> After some reading, I think I have some sort of coherent thought about how 
> to handle users and groups, being a first time Puppet user though I figured 
> I'd ask for some criticism before I go ahead. 
>
> I'll use the /modules/user module as per the BP-doc, and store all the 
> users and groups in one file/class.
> Then I'll have two(for now at least) classes in separate files, basically 
> these will be admins and non-admins, and node classes will then inherit 
> these as needed(I expect most nodes will only need the admins and possibly 
> some application accounts).
> Somethingl like so(no I'm not trying to write real puppet code, just a 
> brief description, so I know this won't work as is ;-) : 
>
> virtual.pp
> class user::virtual
> # Groups first for the sake of order
> @group admin...
> @group notadmin...
> ... 
>
> # Users now
> @user {"user1": gid => "admin" ...}
> @user {"user2": gid => "notadmin" ...}
> ... 
>
>
> admins.pp
> class user::admins inherits user::virtual
> realize ( Group["admin"], User["user1"] ) 
>
>
> nonadmins.pp
> class user::notadmins inherits user::virtual
> realize ( Group["notadmin", User["user2"] ) 
>
> And the base node class will include the user::admin class, and so forth.
> As for application accounts and such, I figured I'd stick these in classes 
> of their own in one manifest(say appusers.pp or some such). 
>
> Basically what I'm asking, does this seem sane to more experienced people, 
> or am I setting myself up for pain? 
>
> Regards
> Johan
>
>

-- 
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/-/DM5V98czFJgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: user management

2012-10-11 Thread siva kumar
Dear Sukh, 
 
I am siva kumar from India , I am new to the puppet and we are planing to 
deploy puppet in our env. and i m learning puppet and working in basic 
modules. However, i came across 
http://itand.me/using-puppet-to-manage-users-passwords-and-ss... for 
user management in puppet. and i follwoed it to deploy and test in my test 
servers. But , the above post no fullfilling my require ment.  Could you 
please share you user management Module with me it very usefull to me.. 
thanks in advance..
 
Regards,
 
Siva Kumar .

On Saturday, January 9, 2010 1:14:22 PM UTC-6, Sukh Khehra wrote: 

> We're using local passwd/shadow files on all our linux hosts for
> authentication and manage them by defining virtual resources like the
> following and realizing them in the appropriate classes based on
> authorization requirements. 
>
> @user {
> "username":
> comment => "User Name",
> uid => "6",
> password=> '$9$5/PrhlML$AttWraRXLd0ASwCq.uIss1',
> home=> "/home/username",
> ensure  => "present",
> gid => "6",
> groups  => ["groupname"],
> shell   => "/bin/sh",
> managehome  => true,
> require => [Group["groupname"]],
> membership  => minimum;
> }   
>
> Currently there is no way for me to directly tie puppet to ldap in our
> environment (for various non technical reasons) but I would like to keep
> the passwords synched with ldap. So I was thinking of writing a script
> to query ldap and create perhaps a csv file containing username,password
> hash, & shell values. 
>
> My questions is can I have my puppet manifests, like the snippet above,
> grab the values for password and shell from an external file? ... a file
> that I create from ldap every night? I found
> "http://nephilim.ml.org/~rip/puppet/extlookup.rb"; but also wanted to ask
> the community here if that's the best way to go. Any ideas will be
> appreciated. 
>
> Regards,
> Sukh
>
>  
On Saturday, January 9, 2010 1:14:22 PM UTC-6, Sukh Khehra wrote: 
>
> We're using local passwd/shadow files on all our linux hosts for
> authentication and manage them by defining virtual resources like the
> following and realizing them in the appropriate classes based on
> authorization requirements. 
>
> @user {
> "username":
> comment => "User Name",
> uid => "6",
> password=> '$9$5/PrhlML$AttWraRXLd0ASwCq.uIss1',
> home=> "/home/username",
> ensure  => "present",
> gid => "6",
> groups  => ["groupname"],
> shell   => "/bin/sh",
> managehome  => true,
> require => [Group["groupname"]],
> membership  => minimum;
> }   
>
> Currently there is no way for me to directly tie puppet to ldap in our
> environment (for various non technical reasons) but I would like to keep
> the passwords synched with ldap. So I was thinking of writing a script
> to query ldap and create perhaps a csv file containing username,password
> hash, & shell values. 
>
> My questions is can I have my puppet manifests, like the snippet above,
> grab the values for password and shell from an external file? ... a file
> that I create from ldap every night? I found
> "http://nephilim.ml.org/~rip/puppet/extlookup.rb"; but also wanted to ask
> the community here if that's the best way to go. Any ideas will be
> appreciated. 
>
> Regards,
> Sukh
>
>  

-- 
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/-/1zQCMDCuO9YJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.