This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
/
provision.ddl
97 lines (79 loc) · 3.01 KB
/
provision.ddl
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
metadata :name => "provision",
:description => "Agent to assist in provisioning new servers",
:author => "R.I.Pienaar",
:license => "Apache 2.0",
:version => "1.1",
:url => "http://mcollective-plugins.googlecode.com/",
:timeout => 360
action "set_puppet_host", :description => "Update /etc/hosts with the master IP" do
display :always
input :ipaddress,
:prompt => "Master IP Address",
:description => "IP Adress of the Puppet Master",
:type => :string,
:validation => '^\d+\.\d+\.\d+\.\d+$',
:optional => false,
:maxlength => 15
end
action "request_certificate", :description => "Send the CSR to the master" do
output :output,
:description => "Puppetd Output",
:display_as => "Output"
output :exitcode,
:description => "Puppetd Exit Code",
:display_as => "Exit Code"
end
action "bootstrap_puppet", :description => "Runs the Puppet bootstrap environment" do
output :output,
:description => "Puppetd Output",
:display_as => "Output"
output :exitcode,
:description => "Puppetd Exit Code",
:display_as => "Exit Code"
end
action "run_puppet", :description => "Runs Puppet in the normal environment" do
output :output,
:description => "Puppetd Output",
:display_as => "Output"
output :exitcode,
:description => "Puppetd Exit Code",
:display_as => "Exit Code"
end
action "daemonize_puppet", :description => "Runs Puppet as a daemon in the normal environment" do
output :output,
:description => "Puppetd Output",
:display_as => "Output"
output :exitcode,
:description => "Puppetd Exit Code",
:display_as => "Exit Code"
end
action "has_cert", :description => "Finds out if we already have a Puppet certificate" do
output :has_cert,
:description => "Have a puppet certificate already been created",
:display_as => "Has Certificate"
end
action "lock_deploy", :description => "Lock the deploy so new ones can not be started" do
output :lockfile,
:description => "The file that got created",
:display_as => "Lock file"
end
action "disable_provisioner", :description => "Completely disable the provisioner" do
output :disablefile,
:description => "The file that got created",
:display_as => "Lock file"
end
action "is_disabled", :description => "Determine if the install is currently disabled" do
output :disabled,
:description => "Is the install disabled",
:display_as => "Disabled"
end
action "is_locked", :description => "Determine if the install is currently locked" do
output :locked,
:description => "Is the install locked",
:display_as => "Locked"
end
action "unlock_deploy", :description => "Unlock the deploy" do
output :unlocked,
:description => "Has the file been unlocked",
:display_as => "Unlocked"
end