-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspp.conf.yml
77 lines (70 loc) · 3.29 KB
/
spp.conf.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
BindAddress: 127.0.0.1:8240
LogFile: /tmp/spp.log
# Global HTTP authentication setting
# HttpAuth:
# Type: basic # digest also supported.
# Realm: puppet.my.org
# DbFile: /path/to/.htpasswd # Consider the htpasswd or htdigest utilities
# Provision API authentication setting - will default to HttpAuth values if not defined
# ProvisionAuth:
# Type: basic
# DbFile: htpasswd
PuppetExecutable: /opt/puppetlabs/bin/puppet
# This defaults to /etc/puppetlabs/puppet which is almost always correct, so should not need to be set here.
# PuppetConfDir: /etc/puppetlabs/puppet
# You may define any arbitrary commands to be run as tasks here during node provisioning.
# The Name attribute defines how to reference the command when calling the /provision http API.
#
# The Command attribute is the command to be run on the system, relative to the working directory
# of the process. An exception is that the Command "puppet" will be converted to the value of
# PuppetExecutable, and the systemwide config file and confdir flags will be added to the arguments.
#
# Arguments are passed to the command directly (e.g. not through any shell) in the order you
# specify them here. Arguments are passed through a template processor that supports accessing
# any value passed by the client in its http POST body. These may be forwarded on to the command
# by using a template notation like {{request "nameOfPostValue"}}
#
# The optional SuccessMessage and ErrorMessage attributes are templates specifying messages added
# to the HTTP response json and sent on any configured notification channels. In addition to the
# http POST values, {{StdOut}} and {{StdErr}} are available.
#
# The optional Reentrant attribute indicates that it is safe to run multiple instances of the
# command simultaneously (e.g. in the servicing of different API calls received around the same time.)
# By default the service will only invoke one instance of each Command at a time.
GenericExecTasks:
- Name: environment
SuccessMessage: '{{request "hostname"}} added to {{request "environment"}}.'
ErrorMessage: 'ERROR assigning "{{request "hostname"}}" to the "{{request "environment"}}" environment. More info in the log.'
Command: scripts/set-environment.sh
Args:
- '{{request "hostname"}}'
- '{{request "environment"}}'
- Name: example
SuccessMessage: '{{StdOut}}'
Command: /bin/echo
Args:
- '-n'
- 'Hello, {{request "name"}}'
Reentrant: true
GithubWebhooks:
Secret: asdf
EnableStandardR10kListener: true
R10kExecutable: /opt/puppetlabs/puppet/bin/r10k
Listeners:
- Event: push
ExecConfig:
Name: custom sync example
SuccessMessage: '"{{request "$.head_commit.message" | printf "%.25s"}}{{ if gt (request "$.head_commit.message" | len) 25}}...{{end}}" by {{request "$.head_commit.author.username"}} in {{request "$.repository.name"}}:{{request "$.ref"}} has been synchronized to all compile masters.'
ErrorMessage: 'ERROR synchronizing commit {{request "$.ref"}}: {{StdErr}}'
Command: scripts/r10k-rsync.sh
Notifications:
- Type: irc
IrcConfig:
Server: irc.msi.umn.edu:6667
Channels: "#iopsdev"
Nick: PuppetBot
Password: ""
- Type: gchat
Webhooks:
- 'https://chat.googleapis.com/v1/spaces/xxxxxxxxxxx/messages?key=xxxxx&token=xxxxx'