-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathinventory.yaml
More file actions
34 lines (32 loc) · 831 Bytes
/
inventory.yaml
File metadata and controls
34 lines (32 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# Groups based on OS. Queries PuppetDB for nodes with the specified OS.
groups:
- name: linux
targets:
- _plugin: puppetdb
query: "inventory[certname] { facts.kernel = 'Linux' }"
- name: windows
targets:
- _plugin: puppetdb
query: "inventory[certname] { facts.kernel = 'windows' }"
transport: winrm
- name: mac
targets:
- _plugin: puppetdb
query: "inventory[certname] { facts.kernel = 'Darwin' }"
# General configuration for all targets
config:
ssh:
host-key-check: false
winrm:
user: Administrator
ssl: false
transport:
_plugin: env_var
var: BOLT_TRANSPORT
default: ssh
pcp:
cacert: ~/.puppetlabs/puppet/cert.pem
service-url: https://puppet:8143
task-environment: host
token-file: ~/.puppetlabs/puppet/token.pem