Skip to content

Commit ad1ecf7

Browse files
committed
Data for mgmt #67
1 parent 2e4bfc8 commit ad1ecf7

File tree

6 files changed

+167
-0
lines changed

6 files changed

+167
-0
lines changed

Diff for: data/mgmt/default.yaml

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
mgmt::settings:
3+
tp_prerequisites: {}
4+
5+
urls:
6+
website: 'https://github.com/purpleidea/mgmt'
7+
issues: 'https://github.com/purpleidea/mgmt/issues'
8+
documentation: 'https://github.com/purpleidea/mgmt/blob/master/docs/documentation.md'
9+
source: 'https://github.com/purpleidea/mgmt'
10+
description: 'Mgmt is a real-time automation tool.'
11+
12+
# Configured: -package -source +release -image
13+
install_method: 'release'
14+
15+
packages:
16+
main:
17+
name: mgmt
18+
19+
services:
20+
mgmt:
21+
process_name: mgmt
22+
process_extra_name: ~
23+
process_user: root
24+
process_group: root
25+
nodaemon_args: '-D'
26+
ensure: running
27+
enable: true
28+
pidfile: /run/mgmt.pid
29+
params: {}
30+
31+
32+
files:
33+
config:
34+
path: '/etc/mgmt/mgmt.conf'
35+
init:
36+
path: '/etc/sysconfig/mgmt.conf'
37+
format: 'inifile'
38+
systemd:
39+
path: '/etc/systemd/system/mgmt.service'
40+
format: 'inifile_with_stanzas'
41+
42+
dirs:
43+
config:
44+
path: '/etc/mgmt'
45+
conf:
46+
path: '/etc/mgmt/conf.d'
47+
log:
48+
path: /var/log/mgmt
49+
home:
50+
path: /var/lib/mgmt
51+
52+
user_files:
53+
config:
54+
path: '$HOME/.mgmt/mgmt.conf'
55+
56+
user_dirs:
57+
config:
58+
path: '$HOME/.mgmt'
59+
60+
ports:
61+
main:
62+
port: 42
63+
protocol: tcp
64+
ssl:
65+
port: 4432
66+
protocol: tcp
67+
68+
info_commands:
69+
list: 'mgmt list'
70+
debug_commands:
71+
debug: 'mgmt debug'
72+
test_commands:
73+
status: 'mgmt status'
74+
version_command: 'mgmt version'
75+
help_command: 'mgmt help'
76+
run_commands:
77+
start:
78+
command: 'mgmt start'
79+
80+
build:
81+
prerequisites:
82+
tp::install:
83+
- golang
84+
execs:
85+
- name: build
86+
command: 'make'
87+
setup:
88+
enable: true
89+
files:
90+
mgmt:
91+
path: '/usr/local/bin/mgmt'
92+
mode: '0755'
93+
systemd_options: {}
94+
resources: {}
95+
manage_service: false
96+
manage_user: false
97+
98+
release:
99+
latest_version: '0.0.21-1'
100+
prerequisites: {}
101+
latest_url: ~
102+
base_url: 'https://github.com/purpleidea/mgmt/releases'
103+
file_name: 'mgmt-$VERSION.$OS-$ARCH.tar.gz'
104+
extracted_dir: 'mgmt-$VERSION.$OS-$ARCH'
105+
file_format: tar.gz
106+
setup:
107+
enable: true
108+
files:
109+
mgmt:
110+
path: '/usr/local/bin/mgmt'
111+
mode: '0755'
112+
systemd_options:
113+
Service:
114+
ExecStart: '/usr/local/bin/mgmt run empty'
115+
EnvironmentFile: ~
116+
resources: {}
117+
manage_service: false
118+
manage_user: false

Diff for: data/mgmt/hiera.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
:hierarchy:
3+
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
4+
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}"
5+
- "%{title}/%{repo}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
6+
- "%{title}/%{repo}/osfamily/%{osfamily}"
7+
- "%{title}/%{repo}/default"
8+
- "%{title}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
9+
- "%{title}/operatingsystem/%{operatingsystem}"
10+
- "%{title}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
11+
- "%{title}/osfamily/%{osfamily}"
12+
- "%{title}/default"
13+
- "default/%{operatingsystem}%{operatingsystemmajrelease}"
14+
- "default/%{operatingsystem}"
15+
- default

Diff for: data/mgmt/osfamily/Darwin.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
mgmt::settings:
3+
brew_package_name: 'mgmt'
4+
5+
user_files:
6+
config:
7+
path: '$HOME/Library/Application\ Support/mgmt/mgmt.conf'
8+
9+
user_dirs:
10+
config:
11+
path: '$HOME/Library/Application\ Support/mgmt/mgmt.conf'

Diff for: data/mgmt/osfamily/Debian.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
mgmt::settings:
3+
4+
files:
5+
init:
6+
path: '/etc/default/mgmt'

Diff for: data/mgmt/osfamily/RedHat.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
mgmt::settings:
3+
dockerfile_prerequisites: 'RUN yum install -y wget which'

Diff for: data/mgmt/osfamily/windows.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
mgmt::settings:
3+
4+
# If exe or msi package is available for direct download:
5+
package_provider: 'windows'
6+
package_source: 'https://github.com/mgmt/mgmt/releases/download/v$VERSION/mgmt_$VERSION_$OS_$ARCH.msi'
7+
8+
user_files:
9+
config:
10+
path: '%APPDATA%\mgmt\mgmt.conf'
11+
12+
user_dirs:
13+
config:
14+
path: '%APPDATA%\mgmt'

0 commit comments

Comments
 (0)