The document is a presentation about managing users, groups, packages, and files in Windows using Puppet configuration management. It discusses installing the Puppet agent on Windows, the Puppet run process, supported Puppet resources for Windows including file, user, group, package, and service resources. It also covers Puppet profiles, roles, modules from the Puppet Forge, and upcoming Puppet training from OlinData.
Boost Fertility New Invention Ups Success Rates.pdf
Webinar - Manage user, groups, packages in windows using puppet
1. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Manage user, groups,
packages in Windows
using Puppet
Configuration management with puppet
2. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Who am I?
• Krishna Prajapati, Systems Engineer at Olindata
http://www.olindata.com/
3. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Overview
• What is puppet (for those not aware)?
• Manage user, groups, files, packages in windows ?
• Windows agent overview.
• Block Diagram
• Puppet Resources
• Puppet Module selection for windows
4. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
What is Puppet and why do we care?
• Configuration management software
• Scales very well (from 1 to 200k+ nodes)
• Multi-platform (windows, *nix, Mac OS, BSD)
• Commercially supported Open Source
• Infrastructure as code
5. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Supported Platforms
• Windows Server 2003/2008 R2/2012
• Windows 7/8
• Architecture x86/x64
6. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Agent Installation
• Download puppet agent for windows from puppetlabs site.
9. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Resources
Resources are the fundamental building blocks.
Resources are the fundamental units for modelling system
configuration. Each resource describe some aspect of a
system, like specific service or package.
10. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Resource Abstraction Layer
The Resource Abstraction Layer, it refers to the
components of Puppet that interact with the system. The
RAL provides an abstract concept of something you can
manage, and it defines concrete ways of managing
things. The Puppet RAL is what allows you to write a
manifest that works on several different platforms without
having to remember if you should invoke apt-get install or
yum install.
11. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
File Resource
file { 'c:/myfile.txt':
ensure => 'file',
mode => '0660',
owner => 'krishna',
group => 'Administrators',
content => 'This the first file created
in windows via puppet',
}
12. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
User Resource
user { 'krishna':
ensure => 'present',
comment => 'Krishna Prajapati',
groups => ['Administrators'],
password => 'strongpassword',
}
13. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Group Resource
group { 'winadmin':
ensure => present,
members => ['krishna'],
auth_membership => false,
}
15. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Service Resource
service { 'mysql':
ensure => 'running',
enable => true,
}
16. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Profile
[root@master /etc/puppetlabs/puppet]# cat
environments/production/modules/profile/manifests/win.pp
class profile::win {
user { 'krishna':
ensure => 'present',
comment => 'Krishna Prajapati',
groups => ['Administrators'],
password => 'strongpassword',
}
group { 'winadmin':
ensure => present,
members => ['krishna'],
auth_membership => false,
}
17. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
file { 'c:/myfile.txt':
ensure => 'file',
mode => '0660',
owner => 'krishna',
group => 'Administrators',
content => 'This the first file created in windows via puppet',
}
package { 'mysql':
ensure => 'installed',
source => 'c:mysql-installer-community-5.6.26.0.msi',
install_options => ['INSTALLDIR=C:mysql-5.6'],
}
notify {"server connected":}
}
[root@master /etc/puppetlabs/puppet]#
18. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Role
[root@master /etc/puppetlabs/puppet]# cat
environments/production/modules/role/manifests/winserver.pp
class role::winserver {
include profile::win
}
[root@master /etc/puppetlabs/puppet]#
19. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Forge: A repository of modules
Use Puppet on Windows to:
● Read, create and write registry keys with puppetlabs-registry.
● Interact with PowerShell through the Puppet DSL with puppetlabs-powershell.
● Reboot Windows as part of management as necessary through puppetlabs-reboot.
● Enforce fine-grained access control permissions using puppetlabs-acl.
● Install or remove Windows features with puppet-windowsfeature.
● Download files for use during management via puppet-download_file.
● Build IIS sites and virtual applications with puppet-iis.
● Soon, create and manage Microsoft SQL including databases, users and grants with
the puppetlabs-sqlserver module
https://forge.puppetlabs.com/
21. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
Upcoming training
Visit the link for full list of trainings: http://olindata.com/training/upcoming
Puppet Fundamentals Training, Helsinki – September 2015
Wednesday, September 9, 2015 - 09:00
Finland
Puppet Fundamentals Training, Bangalore – September 2015
Monday, September 14, 2015 - 09:00
India
Puppet Practitioner Training, Helsinki - September 2015
Monday, September 14, 2015 - 09:00
Finland
Puppet Fundamentals Training, Jakarta – September 2015
Monday, September 21, 2015 - 09:00
Indonesia
23. OlinData Webinar 2015 - https://docs.google.
com/presentation/d/1i9i1pL9r9f_6AHc8m_fxo6VcLArHTDCDiLr9txeNoqY/edit?
usp=sharing
We’re hiring!
EU and Asia based
trainers
jobs@olindata.com