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

Mass V4 conversion #76

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
.project
.envrc
/inventory.yaml
/results.txt
/results.txt
/chroma_db/
4 changes: 4 additions & 0 deletions .requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
langchain
langchain_community
langchain_openai
openai
36 changes: 36 additions & 0 deletions data/activemq/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,39 @@ activemq::settings:
test_commands:
status: 'activemq status'
docker_image: 'apache/activemq'

# Version 4 format
packages:
main:
name: activemq
services:
activemq:
process_name: java
process_extra_name: activemq
process_user: activemq
process_group: activemq
files:
config:
path: "/etc/activemq/activemq.xml"
log:
path: "/var/log/activemq"
pid:
path: "/var/run/activemq/activemq.pid"
user_files:
config:
path: "$HOME/.activemq/activemq.xml"
dirs:
config:
path: "/etc/activemq"
user_dirs:
config:
path: "$HOME/.activemq"
ports:
main:
port: '8161'
protocol: tcp
urls:
website: https://activemq.apache.org/
source: https://github.com/apache/activemq
image:
name: apache/activemq
5 changes: 5 additions & 0 deletions data/activemq/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
activemq::settings:
init_file_path: '/etc/default/activemq'

# Version 4 format
files:
init:
path: "/etc/default/activemq"
7 changes: 7 additions & 0 deletions data/activemq/osfamily/RedHat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
activemq::settings:
package_name: ''
service_name: ''

# Version 4 format
packages:
main:
name: ''
services:
'': {}
23 changes: 23 additions & 0 deletions data/ansible/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,26 @@ ansible::settings:
website_url: 'https://www.ansible.com/'
git_source: 'https://github.com/ansible/ansible'
docker_image: 'quay.io/ansible/ansible-runner'

# Version 4 format
packages:
main:
name: ansible
files:
config:
path: "/etc/ansible/ansible.cfg"
format: inifile_with_stanzas
user_files:
config:
path: "$HOME/.ansible/ansible.cfg"
dirs:
config:
path: "/etc/ansible"
user_dirs:
config:
path: "$HOME/.ansible"
urls:
website: https://www.ansible.com/
source: https://github.com/ansible/ansible
image:
name: quay.io/ansible/ansible-runner
42 changes: 42 additions & 0 deletions data/apache/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,45 @@ apache::settings:
website_url: 'https://httpd.apache.org/'
git_source: 'https://github.com/apache/httpd'
docker_image: 'httpd'

# Version 4 format
packages:
main:
name: httpd
services:
httpd:
process_name: httpd
process_user: apache
process_group: apache
nodaemon_args: "-DFOREGROUND"
files:
config:
path: "/etc/httpd/conf/httpd.conf"
log:
path:
- "/var/log/httpd/access.log"
- "/var/log/httpd/error.log"
pid:
path: "/var/run/httpd.pid"
user_files:
config:
path: "$HOME/.httpd/conf/httpd.conf"
dirs:
config:
path: "/etc/httpd"
log:
path: "/var/log/httpd"
data:
path: "/var/www/html"
user_dirs:
config:
path: "$HOME/.httpd"
ports:
main:
port: '80'
protocol: tcp
urls:
website: https://httpd.apache.org/
source: https://github.com/apache/httpd
image:
name: httpd
36 changes: 36 additions & 0 deletions data/apache/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,39 @@ apache::settings:
show_loaded_modules: 'apache2 -t -D DUMP_MODULES'
test_commands:
validate_config: 'source /etc/apache2/envvars ; apache2 -t'

# Version 4 format
packages:
main:
name: apache2
services:
apache2:
process_name: apache2
process_user: www-data
process_group: www-data
files:
config:
path: "/etc/apache2/apache2.conf"
log:
path:
- "/var/log/apache2/access.log"
- "/var/log/apache2/error.log"
init:
path: "/etc/default/apache2"
pid:
path: "/var/run/apache2.pid"
user_files:
config:
path: "$HOME/.apache2/apache2.conf"
dirs:
config:
path: "/etc/apache2"
conf:
path: "/etc/apache2/conf.d"
log:
path: "/var/log/apache2"
data:
path: "/var/www"
user_dirs:
config:
path: "$HOME/.apache2"
14 changes: 14 additions & 0 deletions data/apache/osfamily/FreeBSD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,17 @@
apache::settings:
config_file_path: '/usr/local/etc/apache20/httpd.conf'
config_dir_path: '/usr/local/etc/apache20'

# Version 4 format
files:
config:
path: "/usr/local/etc/apache20/httpd.conf"
user_files:
config:
path: "/usr/local$HOME/.apache20/httpd.conf"
dirs:
config:
path: "/usr/local/etc/apache20"
user_dirs:
config:
path: "/usr/local$HOME/.apache20"
36 changes: 36 additions & 0 deletions data/apache/osfamily/Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,39 @@ apache::settings:
process_user: 'apache'
process_group: 'apache'
modules_dir_path: '/usr/lib/apache2'

# Version 4 format
packages:
main:
name: apache2
services:
apache2:
process_name: httpd
process_user: apache
process_group: apache
files:
config:
path: "/etc/apache2/httpd.conf"
log:
path:
- "/var/log/apache2/access.log"
- "/var/log/apache2/error.log"
init:
path: "/etc/conf.d/apache2"
pid:
path: "/var/run/apache2/httpd.pid"
user_files:
config:
path: "$HOME/.apache2/httpd.conf"
dirs:
config:
path: "/etc/apache2"
conf:
path: "/etc/apache2/conf.d"
log:
path: "/var/log/apache2"
data:
path: "/var/www"
user_dirs:
config:
path: "$HOME/.apache2"
40 changes: 40 additions & 0 deletions data/apache/osfamily/RedHat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,43 @@ apache::settings:
process_name: 'httpd'
process_user: 'apache'
process_group: 'apache'

# Version 4 format
packages:
main:
name: httpd
services:
httpd:
process_name: httpd
process_user: apache
process_group: apache
files:
config:
path: "/etc/httpd/conf/httpd.conf"
log:
path:
- "/var/log/httpd/access_log"
- "/var/log/httpd/error_log"
init:
path: "/etc/sysconfig/httpd"
pid:
path: "/var/run/httpd.pid"
user_files:
config:
path: "$HOME/.httpd/conf/httpd.conf"
dirs:
config:
path: "/etc/httpd"
conf:
path: "/etc/httpd/conf.d"
log:
path: "/var/log/httpd"
data:
path: "/var/www/html"
user_dirs:
config:
path: "$HOME/.httpd"
ports:
main:
port: '80'
protocol: tcp
34 changes: 34 additions & 0 deletions data/apache/osfamily/Suse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,37 @@ apache::settings:
test_commands:
validate_config: 'httpd2-prefork -t'
version_command: 'httpd2-prefork -v'

# Version 4 format
packages:
main:
name: apache2
services:
apache2:
process_name: httpd2-prefork
process_user: wwwrun
process_group: wwwrun
files:
config:
path: "/etc/apache2/httpd.conf"
log:
path:
- "/var/log/apache2/access.log"
- "/var/log/apache2/error.log"
init:
path: "/etc/default/apache2"
pid:
path: "/var/run/httpd2.pid"
user_files:
config:
path: "$HOME/.apache2/httpd.conf"
dirs:
config:
path: "/etc/apache2"
log:
path: "/var/log/apache2"
data:
path: "/var/www/htdocs"
user_dirs:
config:
path: "$HOME/.apache2"
34 changes: 34 additions & 0 deletions data/apm-server/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,37 @@ apm-server::settings:
process_name: 'apm-server'
version_command: 'apm-server version'
docker_image: 'elastic/apm-server'

# Version 4 format
packages:
main:
name: apm-server
services:
apm-server:
process_name: apm-server
files:
config:
path: "/etc/apm-server/apm-server.yml"
format: yaml
log:
path: "/var/log/apm-server/apm-server"
pid:
path: "/var/run/apm-server.pid"
user_files:
config:
path: "$HOME/.apm-server/apm-server.yml"
dirs:
config:
path: "/etc/apm-server"
log:
path: "/var/log/apm-server"
home:
path: "/usr/share/apm-server"
data:
path: "/var/lib/apm-server"
user_dirs:
config:
path: "$HOME/.apm-server"
image:
name: elastic/apm-server
repo: upstream
5 changes: 5 additions & 0 deletions data/apm-server/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
apm-server::settings:
init_file_path: '/etc/default/apm-server'

# Version 4 format
files:
init:
path: "/etc/default/apm-server"
5 changes: 5 additions & 0 deletions data/apm-server/osfamily/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
apm-server::settings:
init_file_path: '/etc/sysconfig/apm-server'

# Version 4 format
files:
init:
path: "/etc/sysconfig/apm-server"
12 changes: 12 additions & 0 deletions data/apm-server/osfamily/RedHat9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ apm-server::settings:
disallow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT'
onlyif: '/usr/bin/update-crypto-policies --show | grep SHA1'

# Version 4 format
preinstall:
exec:
allow_sha1:
command: "/usr/bin/update-crypto-policies --set DEFAULT:SHA1"
unless: dnf info apm-server
postinstall:
exec:
disallow_sha1:
command: "/usr/bin/update-crypto-policies --set DEFAULT"
onlyif: "/usr/bin/update-crypto-policies --show | grep SHA1"
Loading