-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
--- | ||
mgmt::settings: | ||
tp_prerequisites: {} | ||
|
||
urls: | ||
website: 'https://github.com/purpleidea/mgmt' | ||
issues: 'https://github.com/purpleidea/mgmt/issues' | ||
documentation: 'https://github.com/purpleidea/mgmt/blob/master/docs/documentation.md' | ||
source: 'https://github.com/purpleidea/mgmt' | ||
description: 'Mgmt is a real-time automation tool.' | ||
|
||
# Configured: -package -source +release -image | ||
install_method: 'release' | ||
|
||
packages: | ||
main: | ||
name: mgmt | ||
|
||
services: | ||
mgmt: | ||
process_name: mgmt | ||
process_extra_name: ~ | ||
process_user: root | ||
process_group: root | ||
nodaemon_args: '-D' | ||
ensure: running | ||
enable: true | ||
pidfile: /run/mgmt.pid | ||
params: {} | ||
|
||
|
||
files: | ||
config: | ||
path: '/etc/mgmt/mgmt.conf' | ||
init: | ||
path: '/etc/sysconfig/mgmt.conf' | ||
format: 'inifile' | ||
systemd: | ||
path: '/etc/systemd/system/mgmt.service' | ||
format: 'inifile_with_stanzas' | ||
|
||
dirs: | ||
config: | ||
path: '/etc/mgmt' | ||
conf: | ||
path: '/etc/mgmt/conf.d' | ||
log: | ||
path: /var/log/mgmt | ||
home: | ||
path: /var/lib/mgmt | ||
|
||
user_files: | ||
config: | ||
path: '$HOME/.mgmt/mgmt.conf' | ||
|
||
user_dirs: | ||
config: | ||
path: '$HOME/.mgmt' | ||
|
||
ports: | ||
main: | ||
port: 42 | ||
protocol: tcp | ||
ssl: | ||
port: 4432 | ||
protocol: tcp | ||
|
||
info_commands: | ||
list: 'mgmt list' | ||
debug_commands: | ||
debug: 'mgmt debug' | ||
test_commands: | ||
status: 'mgmt status' | ||
version_command: 'mgmt version' | ||
help_command: 'mgmt help' | ||
run_commands: | ||
start: | ||
command: 'mgmt start' | ||
|
||
build: | ||
prerequisites: | ||
tp::install: | ||
- golang | ||
execs: | ||
- name: build | ||
command: 'make' | ||
setup: | ||
enable: true | ||
files: | ||
mgmt: | ||
path: '/usr/local/bin/mgmt' | ||
mode: '0755' | ||
systemd_options: {} | ||
resources: {} | ||
manage_service: false | ||
manage_user: false | ||
|
||
release: | ||
latest_version: '0.0.21-1' | ||
prerequisites: {} | ||
latest_url: ~ | ||
base_url: 'https://github.com/purpleidea/mgmt/releases' | ||
file_name: 'mgmt-$VERSION.$OS-$ARCH.tar.gz' | ||
extracted_dir: 'mgmt-$VERSION.$OS-$ARCH' | ||
file_format: tar.gz | ||
setup: | ||
enable: true | ||
files: | ||
mgmt: | ||
path: '/usr/local/bin/mgmt' | ||
mode: '0755' | ||
systemd_options: | ||
Service: | ||
ExecStart: '/usr/local/bin/mgmt run empty' | ||
EnvironmentFile: ~ | ||
resources: {} | ||
manage_service: false | ||
manage_user: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
:hierarchy: | ||
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}" | ||
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}" | ||
- "%{title}/%{repo}/osfamily/%{osfamily}%{operatingsystemmajrelease}" | ||
- "%{title}/%{repo}/osfamily/%{osfamily}" | ||
- "%{title}/%{repo}/default" | ||
- "%{title}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}" | ||
- "%{title}/operatingsystem/%{operatingsystem}" | ||
- "%{title}/osfamily/%{osfamily}%{operatingsystemmajrelease}" | ||
- "%{title}/osfamily/%{osfamily}" | ||
- "%{title}/default" | ||
- "default/%{operatingsystem}%{operatingsystemmajrelease}" | ||
- "default/%{operatingsystem}" | ||
- default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
mgmt::settings: | ||
brew_package_name: 'mgmt' | ||
|
||
user_files: | ||
config: | ||
path: '$HOME/Library/Application\ Support/mgmt/mgmt.conf' | ||
|
||
user_dirs: | ||
config: | ||
path: '$HOME/Library/Application\ Support/mgmt/mgmt.conf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
mgmt::settings: | ||
|
||
files: | ||
init: | ||
path: '/etc/default/mgmt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
mgmt::settings: | ||
dockerfile_prerequisites: 'RUN yum install -y wget which' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
mgmt::settings: | ||
|
||
# If exe or msi package is available for direct download: | ||
package_provider: 'windows' | ||
package_source: 'https://github.com/mgmt/mgmt/releases/download/v$VERSION/mgmt_$VERSION_$OS_$ARCH.msi' | ||
|
||
user_files: | ||
config: | ||
path: '%APPDATA%\mgmt\mgmt.conf' | ||
|
||
user_dirs: | ||
config: | ||
path: '%APPDATA%\mgmt' |