From the course: Learning Puppet (2017)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Roles and profiles demo

Roles and profiles demo - Puppet Tutorial

From the course: Learning Puppet (2017)

Start my 1-month free trial

Roles and profiles demo

- [Narrator] Modules are just a structured set of directories and files that follow the standards that Puppet expects. For our profiles, we can start by creating some files in the control repo. First, click Create New File and enter site/profile/manifest/web.pp; for web.pp add the following: class profile::web { include nginx and then }; when that's done, commit directly to production. Now, the directory is already created, so you can just click Create New File to write your other profile manifest. Create an empty one called the app.pp; we'll just put in the class name; profile::app and {} and we'll commit this change and we'll add another one. This time, it'll be called db.pp; class profile::db and just {} and we'll commit the file and we'll make one more called base; base.pp; the base profile is one we can use for things that we want to be included in all roles. For this one, we'll just manage a system user called admin as an example; class profile::base { user ('admin': ensure =>…

Contents