generated from saltstack-formulas/template-formula
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from cobbler/feature/add-configuration
Add initial functionality for Cobbler formula
- Loading branch information
Showing
68 changed files
with
2,487 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Cobbler module configuration file | ||
# Documentation: https://cobbler.readthedocs.io/en/latest/cobbler-conf.html#modules-conf | ||
|
||
# THIS FILE IS MANAGED BY SALTSTACK! | ||
|
||
[authentication] | ||
module = authentication.{{ cobbler['authentication']['module'] }} | ||
hash_algorithm = sha3_512 | ||
|
||
[authorization] | ||
module = authorization.{{ cobbler['authorization']['module'] }} | ||
|
||
[dns] | ||
module = managers.{{ cobbler['dns']['module'] }} | ||
|
||
[dhcp] | ||
module = managers.{{ cobbler['dhcp']['module'] }} | ||
|
||
[tftpd] | ||
module = managers.{{ cobbler['tftp']['module'] }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Cobbler MongoDB configuration file | ||
# THIS FILE IS MANAGED BY SALTSTACK! | ||
|
||
[connection] | ||
host = localhost | ||
port = 27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
# 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: [] | ||
{% if not cobbler['authorization']['default_ownership'] -%} | ||
default_ownership: [] | ||
{% else -%} | ||
default_ownership: | ||
{% for owner in cobbler['authorization']['default_ownership'] -%} | ||
- {{ owner|yaml_encode }} | ||
{% endfor -%} | ||
{% endif %} | ||
default_password_crypted: {{ cobbler['authentication']['password']|yaml_encode }} | ||
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']|int }} | ||
enable_menu: {{ cobbler['menu']['enabled']|int }} | ||
http_port: 80 | ||
{% if not cobbler.get("default_kernel_options", {}) -%} | ||
kernel_options: {} | ||
{% else -%} | ||
kernel_options: | ||
{{ cobbler.get("default_kernel_options", {}) | dict_to_sls_yaml_params | indent }} | ||
{% endif -%} | ||
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: {{ (cobbler['dhcp']['v4'] or cobbler['dhcp']['v6'])|int }} | ||
manage_dns: {{ cobbler['dns']['enabled']|int }} | ||
bind_chroot_path: "" | ||
bind_master: {{ cobbler['dns']['bind']['master']|yaml_encode }} | ||
manage_tftpd: {{ cobbler['tftp']['enabled']|int }} | ||
tftpboot_location: {{ cobbler['tftp']['location']|yaml_encode }} | ||
manage_rsync: {{ cobbler['rsync']['enabled']|int }} | ||
{% if not cobbler['dns']['bind']['forward_zones'] -%} | ||
manage_forward_zones: [] | ||
{% else -%} | ||
manage_forward_zones: | ||
{% for zone in cobbler['dns']['bind']['forward_zones'] -%} | ||
- {{ zone|yaml_encode }} | ||
{% endfor -%} | ||
{% endif %} | ||
{% if not cobbler['dns']['bind']['forward_zones'] -%} | ||
manage_reverse_zones: [] | ||
{% else -%} | ||
manage_reverse_zones: | ||
{% for zone in cobbler['dns']['bind']['reverse_zones'] -%} | ||
- {{ zone|yaml_encode }} | ||
{% endfor -%} | ||
{% endif %} | ||
next_server: {{ cobbler['nextserver']['v4']|yaml_dquote }} | ||
power_management_default_type: {{ cobbler['power_management']['default_type']|yaml_dquote }} | ||
pxe_just_once: 1 | ||
nopxe_with_triggers: 1 | ||
redhat_management_server: "xmlrpc.rhn.redhat.com" | ||
redhat_management_permissive: 0rsync | ||
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: {{ cobbler['scm_track']['enabled']|int }} | ||
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: 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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Cobbler module configuration file | ||
# Documentation: https://cobbler.readthedocs.io/en/latest/cobbler-conf.html#modules-conf | ||
|
||
# THIS FILE IS MANAGED BY SALTSTACK! | ||
|
||
[authentication] | ||
module = authentication.{{ cobbler['authentication']['module'] }} | ||
hash_algorithm = sha3_512 | ||
|
||
[authorization] | ||
module = authorization.{{ cobbler['authorization']['module'] }} | ||
|
||
[dns] | ||
module = managers.{{ cobbler['dns']['module'] }} | ||
|
||
[dhcp] | ||
module = managers.{{ cobbler['dhcp']['module'] }} | ||
|
||
[tftpd] | ||
module = managers.{{ cobbler['tftp']['module'] }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Cobbler MongoDB configuration file | ||
# THIS FILE IS MANAGED BY SALTSTACK! | ||
|
||
[connection] | ||
host = localhost | ||
port = 27017 |
Oops, something went wrong.