Skip to content

Commit

Permalink
feat(config): tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Jun 14, 2024
1 parent 8aeb373 commit ea826c1
Show file tree
Hide file tree
Showing 14 changed files with 1,574 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cobbler/config/file.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
{%- set sls_package_install = tplroot ~ '.package.install' %}
{%- from tplroot ~ "/map.jinja" import mapdata as cobbler with context %}
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
{%- set cobbler_version = salt["cmd.run"]("python3 -c \"import configparser; cp = configparser.ConfigParser(); cp.read('/etc/cobbler/version'); print(cp.get('cobbler', 'version'))\"") %}
include:
- {{ sls_package_install }}
cobbler-config-file-file-managed:
file.managed:
- name: {{ cobbler.config }}
- source: {{ files_switch(['settings.yaml.jinja'],
- source: {{ files_switch([ cobbler_version + '/settings.yaml.jinja'],
lookup='cobbler-config-file-file-managed'
)
}}
Expand Down
117 changes: 117 additions & 0 deletions cobbler/files/default/3.2.0/settings.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Cobbler settings file
# THIS FILE IS MANAGED BY SALTSTACK!
# This config file is in YAML 1.2 format; see "http://yaml.org".

allow_duplicate_hostnames: 0
allow_duplicate_ips: 0
allow_duplicate_macs: 0
allow_dynamic_settings: 0
anamon_enabled: 0
authn_pam_service: "login"
auth_token_expiration: 3600
autoinstall_snippets_dir: /var/lib/cobbler/snippets
autoinstall_templates_dir: /var/lib/cobbler/templates
boot_loader_conf_template_dir: "/etc/cobbler/boot_loader_conf"
build_reporting_enabled: 0
build_reporting_sender: ""
build_reporting_email: [ 'root@localhost' ]
build_reporting_smtp_server: "localhost"
build_reporting_subject: ""
build_reporting_ignorelist: [ "" ]
cache_enabled: 1
cheetah_import_whitelist:
- "random"
- "re"
- "time"
- "netaddr"
createrepo_flags: "-c cache -s sha"
default_autoinstall: /var/lib/cobbler/autoinstall_templates/default.ks
default_name_servers: []
default_name_servers_search: []
default_ownership:
- "admin"
default_password_crypted: "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac."
default_template_type: "cheetah"
default_virt_bridge: xenbr0
default_virt_file_size: 5
default_virt_ram: 512
default_virt_type: xenpv
enable_gpxe: 0
enable_menu: 1
http_port: 80
kernel_options: {}
ldap_server: "ldap.example.com"
ldap_base_dn: "DC=example,DC=com"
ldap_port: 389
ldap_tls: 1
ldap_anonymous_bind: 1
ldap_search_bind_dn: ''
ldap_search_passwd: ''
ldap_search_prefix: 'uid='
ldap_tls_cacertfile: ''
ldap_tls_keyfile: ''
ldap_tls_certfile: ''
mgmt_classes: []
mgmt_parameters:
from_cobbler: 1
puppet_auto_setup: 0
sign_puppet_certs_automatically: 0
puppetca_path: "/usr/bin/puppet"
remove_old_puppet_certs_automatically: 0
manage_dhcp: 0
manage_dns: 0
bind_chroot_path: ""
bind_master: 127.0.0.1
manage_tftpd: 1
tftpboot_location: {{ cobbler['tftp']['location']|yaml_encode }}
manage_rsync: 0
manage_forward_zones: []
manage_reverse_zones: []
next_server: 127.0.0.1
power_management_default_type: 'ipmitool'
pxe_just_once: 1
nopxe_with_triggers: 1
redhat_management_server: "xmlrpc.rhn.redhat.com"
redhat_management_permissive: 0
redhat_management_key: ""
register_new_installs: 0
reposync_flags: "-l -n -d"
reposync_rsync_flags: "-rltDv --copy-unsafe-links"
restart_dns: 1
restart_dhcp: 1
run_install_triggers: 1
scm_track_enabled: 0
scm_track_mode: "git"
scm_track_author: "cobbler <cobbler@localhost>"
scm_push_script: "/bin/true"
server: 127.0.0.1
client_use_localhost: 0
client_use_https: 0
virt_auto_boot: 1
webdir: "{{ cobbler['webdir'] }}/cobbler"
webdir_whitelist:
- misc
- web
- webui
- localmirror
- repo_mirror
- distro_mirror
- images
- links
- pub
- repo_profile
- repo_system
- svc
- rendered
- .link_cache
xmlrpc_port: 25151
yum_post_install_mirror: 1
yum_distro_priority: 1
yumdownloader_flags: "--resolve"
serializer_pretty_json: 0
replicate_rsync_options: "-avzH"
replicate_repo_rsync_options: "-avzH"
always_write_dhcp_entries: 0
proxy_url_ext: ""
proxy_url_int: ""
include: [ "/etc/cobbler/settings.d/*.settings" ]
130 changes: 130 additions & 0 deletions cobbler/files/default/3.2.1/settings.yaml.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Cobbler settings file
# THIS FILE IS MANAGED BY SALTSTACK!
# This config file is in YAML 1.2 format; see "http://yaml.org".

allow_duplicate_hostnames: false
allow_duplicate_ips: false
allow_duplicate_macs: false
allow_dynamic_settings: false
anamon_enabled: false
authn_pam_service: "login"
auth_token_expiration: 3600
autoinstall_snippets_dir: /var/lib/cobbler/snippets
autoinstall_templates_dir: /var/lib/cobbler/templates
boot_loader_conf_template_dir: "/etc/cobbler/boot_loader_conf"
build_reporting_enabled: false
build_reporting_sender: ""
build_reporting_email: [ 'root@localhost' ]
build_reporting_smtp_server: "localhost"
build_reporting_subject: ""
build_reporting_ignorelist: []
cache_enabled: true
cheetah_import_whitelist:
- "random"
- "re"
- "time"
- "netaddr"
createrepo_flags: "-c cache -s sha"
default_autoinstall: /var/lib/cobbler/autoinstall_templates/default.ks
default_name_servers: []
default_name_servers_search: []
default_ownership:
- "admin"
default_password_crypted: "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac."
default_template_type: "cheetah"
default_virt_bridge: xenbr0
default_virt_file_size: 5
default_virt_ram: 512
default_virt_type: xenpv
enable_gpxe: false
enable_menu: true
http_port: 80
kernel_options: {}
ldap_server: "ldap.example.com"
ldap_base_dn: "DC=example,DC=com"
ldap_port: 389
ldap_tls: true
ldap_anonymous_bind: true
ldap_search_bind_dn: ''
ldap_search_passwd: ''
ldap_search_prefix: 'uid='
ldap_tls_cacertfile: ''
ldap_tls_keyfile: ''
ldap_tls_certfile: ''
mgmt_classes: []
mgmt_parameters:
from_cobbler: true
puppet_auto_setup: false
sign_puppet_certs_automatically: false
puppetca_path: "/usr/bin/puppet"
remove_old_puppet_certs_automatically: false
puppet_parameterized_classes: true
manage_dhcp: false
manage_dns: false
bind_chroot_path: ""
bind_master: 127.0.0.1
manage_tftpd: true
tftpboot_location: {{ cobbler['tftp']['location']|yaml_encode }}
manage_rsync: false
manage_forward_zones: []
manage_reverse_zones: []
next_server: 127.0.0.1
power_management_default_type: 'ipmilan'
pxe_just_once: true
nopxe_with_triggers: true
redhat_management_server: "xmlrpc.rhn.redhat.com"
redhat_management_permissive: false
redhat_management_key: ""
register_new_installs: false
reposync_flags: "-l -n -d"
reposync_rsync_flags: "-rltDv --copy-unsafe-links"
restart_dns: true
restart_dhcp: true
run_install_triggers: true
scm_track_enabled: false
scm_track_mode: "git"
scm_track_author: "cobbler <cobbler@localhost>"
scm_push_script: "/bin/true"
server: 127.0.0.1
client_use_localhost: false
client_use_https: false
virt_auto_boot: true
webdir: "{{ cobbler['webdir'] }}/cobbler"
webdir_whitelist:
- misc
- web
- webui
- localmirror
- repo_mirror
- distro_mirror
- images
- links
- pub
- repo_profile
- repo_system
- svc
- rendered
- .link_cache
xmlrpc_port: 25151
yum_post_install_mirror: true
yum_distro_priority: 1
yumdownloader_flags: "--resolve"
serializer_pretty_json: false
replicate_rsync_options: "-avzH"
replicate_repo_rsync_options: "-avzH"
always_write_dhcp_entries: false
proxy_url_ext: ""
proxy_url_int: ""
jinja2_includedir: "/var/lib/cobbler/jinja2"
convert_server_to_ip: false
bootloaders_dir: "/var/lib/cobbler/loaders"
buildisodir: "/var/cache/cobbler/buildiso"
cobbler_master: ""
default_virt_disk_driver: "raw"
grubconfig_dir: "/var/lib/cobbler/grub_config"
iso_template_dir: "/etc/cobbler/iso"
puppet_server: ""
puppet_version: 2
signature_path: "/var/lib/cobbler/distro_signatures.json"
signature_url: "https://cobbler.github.io/signatures/3.0.x/latest.json"
include: [ "/etc/cobbler/settings.d/*.settings" ]
File renamed without changes.
File renamed without changes.
130 changes: 130 additions & 0 deletions cobbler/files/default/3.2.2/settings.yaml.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Cobbler settings file
# THIS FILE IS MANAGED BY SALTSTACK!
# This config file is in YAML 1.2 format; see "http://yaml.org".

allow_duplicate_hostnames: false
allow_duplicate_ips: false
allow_duplicate_macs: false
allow_dynamic_settings: false
anamon_enabled: false
authn_pam_service: "login"
auth_token_expiration: 3600
autoinstall_snippets_dir: /var/lib/cobbler/snippets
autoinstall_templates_dir: /var/lib/cobbler/templates
boot_loader_conf_template_dir: "/etc/cobbler/boot_loader_conf"
build_reporting_enabled: false
build_reporting_sender: ""
build_reporting_email: [ 'root@localhost' ]
build_reporting_smtp_server: "localhost"
build_reporting_subject: ""
build_reporting_ignorelist: []
cache_enabled: true
cheetah_import_whitelist:
- "random"
- "re"
- "time"
- "netaddr"
createrepo_flags: "-c cache -s sha"
default_autoinstall: /var/lib/cobbler/autoinstall_templates/default.ks
default_name_servers: []
default_name_servers_search: []
default_ownership:
- "admin"
default_password_crypted: "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac."
default_template_type: "cheetah"
default_virt_bridge: xenbr0
default_virt_file_size: 5
default_virt_ram: 512
default_virt_type: xenpv
enable_gpxe: {{ cobbler['bootloaders']['ipxe']['enabled']|yaml_encode }}
enable_menu: true
http_port: 80
kernel_options: {}
ldap_server: "ldap.example.com"
ldap_base_dn: "DC=example,DC=com"
ldap_port: 389
ldap_tls: true
ldap_anonymous_bind: true
ldap_search_bind_dn: ''
ldap_search_passwd: ''
ldap_search_prefix: 'uid='
ldap_tls_cacertfile: ''
ldap_tls_keyfile: ''
ldap_tls_certfile: ''
mgmt_classes: []
mgmt_parameters:
from_cobbler: true
puppet_auto_setup: false
sign_puppet_certs_automatically: false
puppetca_path: "/usr/bin/puppet"
remove_old_puppet_certs_automatically: false
puppet_parameterized_classes: true
manage_dhcp: {{ (cobbler['dhcp']['v4'] or cobbler['dhcp']['v6'])|yaml_encode }}
manage_dns: {{ cobbler['dns']['enabled']|yaml_encode }}
bind_chroot_path: ""
bind_master: {{ cobbler['dns']['bind']['master']|yaml_encode }}
manage_tftpd: {{ cobbler['tftp']['enabled']|yaml_encode }}
tftpboot_location: {{ cobbler['tftp']['location']|yaml_encode }}
manage_rsync: {{ cobbler['rsync']['enabled']|yaml_encode }}
manage_forward_zones: []
manage_reverse_zones: []
next_server: {{ cobbler['nextserver']['v4']|yaml_dquote }}
power_management_default_type: {{ cobbler['power_management']['default_type']|yaml_dquote }}
pxe_just_once: true
nopxe_with_triggers: true
redhat_management_server: "xmlrpc.rhn.redhat.com"
redhat_management_permissive: false
redhat_management_key: ""
register_new_installs: false
reposync_flags: "-l -n -d"
reposync_rsync_flags: "-rltDv --copy-unsafe-links"
restart_dns: true
restart_dhcp: true
run_install_triggers: true
scm_track_enabled: {{ cobbler['scm_track']['enabled']|yaml_encode }}
scm_track_mode: {{ cobbler['scm_track']['mode']|yaml_dquote }}
scm_track_author: {{ cobbler['scm_track']['author']|yaml_dquote }}
scm_push_script: {{ cobbler['scm_track']['push_script']|yaml_dquote }}
server: {{ cobbler['server'] }}
client_use_localhost: false
client_use_https: false
virt_auto_boot: true
webdir: "{{ cobbler['webdir'] }}/cobbler"
webdir_whitelist:
- misc
- web
- webui
- localmirror
- repo_mirror
- distro_mirror
- images
- links
- pub
- repo_profile
- repo_system
- svc
- rendered
- .link_cache
xmlrpc_port: 25151
yum_post_install_mirror: true
yum_distro_priority: 1
yumdownloader_flags: "--resolve"
serializer_pretty_json: false
replicate_rsync_options: "-avzH"
replicate_repo_rsync_options: "-avzH"
always_write_dhcp_entries: false
proxy_url_ext: ""
proxy_url_int: ""
jinja2_includedir: "/var/lib/cobbler/jinja2"
convert_server_to_ip: false
bootloaders_dir: "/var/lib/cobbler/loaders"
buildisodir: "/var/cache/cobbler/buildiso"
cobbler_master: ""
default_virt_disk_driver: "raw"
grubconfig_dir: "/var/lib/cobbler/grub_config"
iso_template_dir: "/etc/cobbler/iso"
puppet_server: ""
puppet_version: 2
signature_path: "/var/lib/cobbler/distro_signatures.json"
signature_url: "https://cobbler.github.io/signatures/3.0.x/latest.json"
include: [ "/etc/cobbler/settings.d/*.settings" ]
Loading

0 comments on commit ea826c1

Please sign in to comment.