Skip to content

Commit

Permalink
Add 24.7 Support (#146)
Browse files Browse the repository at this point in the history
* Rebase with d64d7a6

* restructured module_index

---------

Co-authored-by: kdhlab <[email protected]>
Co-authored-by: KiLLuuuhh <[email protected]>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent d64d7a6 commit d40cade
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 2 deletions.
11 changes: 10 additions & 1 deletion molecule/firewall_rules/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ platforms:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'

- name: "24.1"
box: puzzle/opnsense
hostname: false
Expand All @@ -57,6 +56,16 @@ platforms:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'
- name: "24.7"
box: puzzle/opnsense
hostname: false
box_version: "24.7"
memory: 1024
cpus: 2
instance_raw_config_args:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'

provisioner:
name: ansible
Expand Down
10 changes: 10 additions & 0 deletions molecule/interfaces_assignments/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ platforms:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'
- name: "24.7"
box: puzzle/opnsense
hostname: false
box_version: "24.7"
memory: 1024
cpus: 2
instance_raw_config_args:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'

provisioner:
name: ansible
Expand Down
10 changes: 10 additions & 0 deletions molecule/system_access_users/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ platforms:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'
- name: "24.7"
box: puzzle/opnsense
hostname: false
box_version: "24.7"
memory: 1024
cpus: 2
instance_raw_config_args:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'

provisioner:
name: ansible
Expand Down
10 changes: 10 additions & 0 deletions molecule/system_settings_general/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ platforms:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'
- name: "24.7"
box: puzzle/opnsense
hostname: false
box_version: "24.7"
memory: 1024
cpus: 2
instance_raw_config_args:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'

provisioner:
name: ansible
Expand Down
11 changes: 10 additions & 1 deletion molecule/system_settings_logging/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@ platforms:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'

- name: "24.7"
box: puzzle/opnsense
hostname: false
box_version: "24.7"
memory: 1024
cpus: 2
instance_raw_config_args:
- 'vm.guest = :freebsd'
- 'ssh.sudo_command = "%c"'
- 'ssh.shell = "/bin/sh"'
provisioner:
name: ansible
env:
Expand Down
126 changes: 126 additions & 0 deletions plugins/module_utils/module_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,132 @@
},
},
"24.7": {
"system_settings_general": {
"hostname": "system/hostname",
"domain": "system/domain",
"timezone": "system/timezone",
# Add other mappings here
"php_requirements": [
"/usr/local/etc/inc/config.inc",
"/usr/local/etc/inc/util.inc",
"/usr/local/etc/inc/filter.inc",
"/usr/local/etc/inc/system.inc",
"/usr/local/etc/inc/interfaces.inc",
],
"configure_functions": {
"system_timezone_configure": {
"name": "system_timezone_configure",
"configure_params": ["true"],
},
"system_trust_configure": {
"name": "system_trust_configure",
"configure_params": ["true"],
},
"system_hostname_configure": {
"name": "system_hostname_configure",
"configure_params": ["true"],
},
"system_hosts_generate": {
"name": "system_hosts_generate",
"configure_params": ["true"],
},
"system_resolvconf_generate": {
"name": "system_resolvconf_generate",
"configure_params": ["true"],
},
"plugins_configure_dns": {
"name": "plugins_configure",
"configure_params": ["'dns'", "true"],
},
"plugins_configure_dhcp": {
"name": "plugins_configure",
"configure_params": ["'dhcp'", "true"],
},
"filter_configure": {
"name": "filter_configure",
"configure_params": ["true"],
},
},
},
"system_settings_logging": {
"preserve_logs": "syslog/preservelogs",
"max_log_file_size_mb": "syslog/maxfilesize",
# Add other mappings here
"php_requirements": [
"/usr/local/etc/inc/config.inc",
"/usr/local/etc/inc/util.inc",
"/usr/local/etc/inc/system.inc",
],
"configure_functions": {
"system_settings_logging": {
"name": "system_syslog_start",
"configure_params": ["true"],
}
},
},
"system_access_users": {
"users": "system/user",
"uid": "system/nextuid",
"gid": "system/nextgid",
"system": "system",
"php_requirements": [
"/usr/local/etc/inc/system.inc",
],
"configure_functions": {},
},
"password": {
"php_requirements": [
"/usr/local/etc/inc/auth.inc",
],
"configure_functions": {
"password": {
"name": "echo password_hash",
"configure_params": [
"'password'",
"PASSWORD_BCRYPT",
"[ 'cost' => 11 ]",
],
},
},
},
"firewall_rules": {
"rules": "filter",
"php_requirements": [
"/usr/local/etc/inc/interfaces.inc",
"/usr/local/etc/inc/config.inc",
"/usr/local/etc/inc/util.inc",
"/usr/local/etc/inc/system.inc",
"/usr/local/etc/inc/filter.inc",
],
"configure_functions": {
"system_cron_configure": {
"name": "system_cron_configure",
"configure_params": ["true"],
},
"filter_configure": {
"name": "filter_configure",
"configure_params": [],
},
},
},
"interfaces_assignments": {
"interfaces": "interfaces",
# Add other mappings here.
"php_requirements": [
"/usr/local/etc/inc/config.inc",
"/usr/local/etc/inc/util.inc",
"/usr/local/etc/inc/filter.inc",
"/usr/local/etc/inc/system.inc",
"/usr/local/etc/inc/rrd.inc",
"/usr/local/etc/inc/interfaces.inc",
],
"configure_functions": {
"filter_configure": {
"name": "filter_configure",
"configure_params": [],
},
},
},
"system_high_availability_settings": {
# Add other mappings here
"hasync": "hasync",
Expand Down

0 comments on commit d40cade

Please sign in to comment.