Writing my first role

12 views
Skip to first unread message

Alex Samad

unread,
Jun 24, 2016, 12:35:51 AM6/24/16
to Puppet Users
Hi

So greenfield install. I'm a newbie.

I have setup the latest puppet open source, using r10k + git. I have started with the control-repo.

I have my 'alex' branch/environment.

I can see there is a directory 
site/profile/manifests

I presume I can put my "code" here for example

cat  site/profile/manifests/mypuppet.pp

class profile::mypuppet {
        include ::puppet_agent;

}
 



What I would like todo is set the default environment in puppet.conf via this model

Or even go further and install a complete puppet.conf.

How do I assign the profile::mypuppet to all notes in this environment 

Would/could I add it to hieradata/common.yaml with something like

class:
-profile::mypuppet


Although I also realize or at least plan to use roles.  idea being a node gets a roles which is made up of all the relevant profiles.

Alex
Reply all
Reply to author
Forward
0 new messages