Merge 93180b4d03
into cbeb86670a
This commit is contained in:
commit
d1246cb1bd
@ -5,6 +5,8 @@ forge "https://forge.puppet.com"
|
||||
#mod "puppetlabs/inifile", '1.5.0'
|
||||
#mod "puppetlabs/stdlib", '4.11.0'
|
||||
#mod "puppetlabs/concat", '2.1.0'
|
||||
mod "puppetlabs-dsc", '1.5.0'
|
||||
mod 'puppetlabs-windows', '5.0.0'
|
||||
|
||||
# Modules from Git
|
||||
# Examples: https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#examples
|
||||
|
37
examples.md
Normal file
37
examples.md
Normal file
@ -0,0 +1,37 @@
|
||||
## Example for creating domain users
|
||||
```
|
||||
dsc_xaduser {'username':
|
||||
dsc_ensure => present,
|
||||
dsc_domainname => 'domain.name',
|
||||
dsc_username => 'username',
|
||||
dsc_password => {
|
||||
'user' => 'username',
|
||||
'password' => Sensitive("$password")
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## Example for adding domain user to local admin group
|
||||
```
|
||||
group {'Local Administrators':
|
||||
name => 'Administrators',
|
||||
ensure => present,
|
||||
auth_membership => false,
|
||||
members => 'DOMAIN\User',
|
||||
}
|
||||
```
|
||||
|
||||
## Example for scheduled tasks
|
||||
```
|
||||
scheduled_task {'run script':
|
||||
name => 'test task',
|
||||
ensure => present,
|
||||
enabled => true,
|
||||
command => 'c:\\temp\\scheduled_task.ps1',
|
||||
trigger => {
|
||||
schedule => 'daily',
|
||||
start_time => '15:30'
|
||||
},
|
||||
}
|
||||
```
|
||||
|
3
run-puppet.sh
Normal file
3
run-puppet.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd /etc/puppetlabs/code/environments/production && git pull
|
||||
/opt/puppetlabs/bin/puppet apply manifests/
|
Loading…
Reference in New Issue
Block a user