Skip to content

Commit

Permalink
Data for mgmt #67
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Feb 15, 2023
1 parent 2e4bfc8 commit ad1ecf7
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 0 deletions.
118 changes: 118 additions & 0 deletions data/mgmt/default.yaml
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
15 changes: 15 additions & 0 deletions data/mgmt/hiera.yaml
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
11 changes: 11 additions & 0 deletions data/mgmt/osfamily/Darwin.yaml
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'
6 changes: 6 additions & 0 deletions data/mgmt/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
mgmt::settings:

files:
init:
path: '/etc/default/mgmt'
3 changes: 3 additions & 0 deletions data/mgmt/osfamily/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
mgmt::settings:
dockerfile_prerequisites: 'RUN yum install -y wget which'
14 changes: 14 additions & 0 deletions data/mgmt/osfamily/windows.yaml
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'

0 comments on commit ad1ecf7

Please sign in to comment.