Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #64

Merged
merged 27 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Describe your issue
# Your tp request

Application to manage (new or to fix):
Operating System(s) to support:
Installation Method(s):

## Labels

Expand All @@ -7,10 +11,3 @@ Please use the following labels:
* **tinydata request** for any request for new or updated tinydata for an application
* **questions** for any error you find, doubt or clarification request

## Context

Please provide any info useful for troubleshooting, like:

1. Output of `facter -p` on the failing node (at least the OS related facts)
2. Version of Puppet and of the module
3. The relevant Puppet code and eventually Hiera data
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--color
--format documentation
--format progress
6 changes: 3 additions & 3 deletions data/apm-server/osfamily/RedHat9.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
# Workaround for GPG-KEY in SHA1 https://github.com/elastic/elasticsearch/issues/85876
# Workaround for GPG-KEY in SHA1 https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
apm-server::settings:
exec_prerequisites:
allow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT:SHA1'
unless: 'rpm -qi apm-server'
unless: 'dnf info apm-server'
exec_postinstall:
disallow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT'
unless: 'rpm -qi apm-server'
onlyif: '/usr/bin/update-crypto-policies --show | grep SHA1'
6 changes: 3 additions & 3 deletions data/auditbeat/osfamily/RedHat9.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
# Workaround for GPG-KEY in SHA1 https://github.com/elastic/elasticsearch/issues/85876
# Workaround for GPG-KEY in SHA1 https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
auditbeat::settings:
exec_prerequisites:
allow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT:SHA1'
unless: 'rpm -qi auditbeat'
unless: 'dnf info auditbeat'
exec_postinstall:
disallow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT'
unless: 'rpm -qi auditbeat'
onlyif: '/usr/bin/update-crypto-policies --show | grep SHA1'
72 changes: 72 additions & 0 deletions data/blender/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
blender::settings:
tp_prerequisites: {}

urls:
website: 'https://blender.org'
support: 'https://www.blender.org/support/'
documentation: 'https://www.blender.org/get-involved/documentation/'
source: 'https://github.com/blender/blender'
description: 'Blender is the free and open source 3D creation suite'

# Configured: +package -source -release +image
install_method: 'release'

packages:
main:
name: blender
ensure: present
source: ~
install_options: []
params: {}
providers:
chocolatey:
name: blender
scoop:
name: blender
winget:
name: BlenderFoundation.Blender

files:
config:
path: /usr/share/blender/$MAJVERSION/
format: 'inifile_with_stanzas'

dirs:
home:
path: '/usr/share/blender/qON/'

user_files:
config:
path: '$HOME/.config/blender/$MAJVERSION/'

user_dirs:
config:
path: '$HOME/.config/blender/$MAJVERSION/'

info_commands:
list: 'blender list'
debug_commands:
debug: 'blender debug'
test_commands:
status: 'blender status'
version_command: 'blender version'
help_command: 'blender help'
run_commands:
start:
command: 'blender start'
release:
latest_version: '3.4.1'
latest_version_major: '3.4'
destination: /usr/share/blender
base_url: 'https://mirrors.dotsrc.org/blender/release/Blender$MAJVERSION/'
# Official base url has a intermediate page. A specific mirrot is used instead.
# base_url: 'https://www.blender.org/download/release/Blender$MAJVERSION/blender-$VERSION-$OS-$ARCH'
file_name: 'blender-$VERSION-$OS-x64.tar.xz'
extracted_dir: 'blender-$VERSION-$OS-x64'
file_format: xz
extract_dir: '/usr/share/blender'
setup:
enable: true
links:
'/usr/local/bin/blender': '/usr/share/blender/blender-$VERSION-$OS-x64/blender'
15 changes: 15 additions & 0 deletions data/blender/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
8 changes: 8 additions & 0 deletions data/blender/osfamily/Darwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
blender::settings:
brew_package_name: 'blender'
package_provider: 'appdmg'

packages:
main:
source: 'https://ftp.nluug.nl/pub/graphics/blender/release/Blender$MAJVERSION/blender-$VERSION-macos-$ARCH.dmg'
3 changes: 3 additions & 0 deletions data/blender/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
blender::settings: {}

4 changes: 4 additions & 0 deletions data/blender/osfamily/windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
blender::settings:
package_provider: 'windows'
package_source: 'https://www.blender.org/download/release/Blender$MAJVERSION/blender-$VERSION-windows-x64.msi'
2 changes: 1 addition & 1 deletion data/crowdsec_repo/upstream/default.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
crowdsec_repo::settings:
key_url: https://packagecloud.io/crowdsec/crowdsec/gpgkey
key_url: https://packagecloud.io/crowdsec/crowdsec/gpgkey https://packagecloud.io/crowdsec/crowdsec/gpgkey/crowdsec-crowdsec-B78D1222C9AD2D5D.pub.gpg https://packagecloud.io/crowdsec/crowdsec/gpgkey/crowdsec-crowdsec-EDE2C695EC9A5A5C.pub.gpg https://packagecloud.io/crowdsec/crowdsec/gpgkey/crowdsec-crowdsec-C822EDD6B39954A1.pub.gpg https://packagecloud.io/crowdsec/crowdsec/gpgkey/crowdsec-crowdsec-FED78314A2468CCF.pub.gpg
key: '6A89 E3C2 303A 901A 8899 71D3 376E D532 6E93 CD0C'
apt_repos: 'main'
repo_filename: crowdsec_crowdsec
Expand Down
19 changes: 2 additions & 17 deletions data/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,12 @@ default::settings:
config_file_mode: '0644'
config_dir_owner: 'root'
config_dir_group: 'root'
config_dir_mode: '0755'
config_dir_mode: '0644'
config_dir_purge: false
config_dir_recurse: true
config_dir_recurse: false
install_method: 'package'

packages:
main:
ensure: present
source: ~
install_options: []
params: {}
providers: {}
manage: true
devel:
name: '$TITLE-devel'
ensure: present
Expand All @@ -35,14 +28,6 @@ default::settings:
ensure: present
manage: false

services:
main:
process_user: root
process_group: root
ensure: running
enable: true
params: {}

files:
config:
owner: 'root'
Expand Down
1 change: 0 additions & 1 deletion data/default/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ default::settings:
repos:
default:
package_provider: dpkg

image:
dockerfile_prerequisites: 'RUN apt-get update && apt-get install -y --force-yes --no-install-recommends wget'
4 changes: 0 additions & 4 deletions data/default/Devuan4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ default::settings:
default:
apt:
release: 'chimaera'

services:
main:
provider: 'sysvinit'
4 changes: 4 additions & 0 deletions data/fail2ban/osfamily/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fail2ban::settings:
tp_prerequisites:
- epel
87 changes: 87 additions & 0 deletions data/golang/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
golang::settings:
tp_prerequisites: {}

urls:
website: 'https://go.dev'
issues: 'https://github.com/golang/go/issues'
documentation: 'https://go.dev/doc/'
source: 'https://github.com/golang/go'
description: 'The Go programming language'

# Configured: +package -source -file +image
install_method: 'package'

packages:
main:
name: golang
ensure: present
source: ~
install_options: []
params: {}
providers:
chocolatey:
name: golang
scoop:
name: go
winget:
name: ~
snap:
name: go
brew:
name: go

info_commands:
list: 'go list'
debug_commands:
debug: 'go debug'
test_commands:
status: 'go status'
version_command: 'go version'
help_command: 'go help'
run_commands:
start:
command: 'golang start'

image:
name: 'golang'

build:
prerequisites:
tp::install:
- build-essential
execs:
- name: configure
command: './configure'
- name: build
command: 'make'
- name: setup
command: 'make install'
setup:
enable: true
files:
golang:
path: '/usr/local/bin/golang'
mode: '0755'
systemd_options: {}
resources: {}
manage_service: false
manage_user: false

release:
latest_version: ~
prerequisites: {}
latest_url: ~
base_url: 'https://go.dev/dl/go$VERSION.$OS-$ARCH.tar.gz'
file_name: 'go$VERSION.$OS-$ARCH..tar.gz'
extracted_dir: 'go$VERSION.$OS-$ARCH.tar.gz'
file_format: tar.gz
setup:
enable: true
files:
golang:
path: '/usr/local/bin/golang'
mode: '0755'
resources: {}
manage_service: false
manage_user: false
15 changes: 15 additions & 0 deletions data/golang/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
5 changes: 5 additions & 0 deletions data/golang/osfamily/Darwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
golang::settings:

release:
https://go.dev/dl/go1.20.darwin-arm64.pkg
6 changes: 6 additions & 0 deletions data/golang/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
golang::settings:

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

# If exe or msi package is available for direct download:
package_provider: 'windows'
package_source: 'https://go.dev/dl/go$VERSION.$OS-$ARCH.msi'

user_files:
config:
path: '%APPDATA%\golang\golang.conf'

user_dirs:
config:
path: '%APPDATA%\golang'
Loading