Skip to content

Commit

Permalink
Add possibility to add extra post commands to ks (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
martbhell authored Oct 30, 2019
1 parent 615f7fc commit 58e243c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ os_variant: "rhel6"
# Optionally prepopulate /etc/hosts with the IP for the puppetmaster
#puppetmaster_ip:


# Optionally add extra post commands
#provision_kickstart_extra_post_commands:
# - "echo br_netfilter > /etc/modules-load.d/ks_br_netfilter.conf"

#################################################
# Image based deployment settings ###############
Expand Down
5 changes: 5 additions & 0 deletions templates/kickstart.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,10 @@ chmod 0400 /root/.ssh/authorized_keys
/sbin/ip route add {{ route }}
{% endfor %}
{% endif %}
{%- if provision_kickstart_extra_post_commands is defined -%}
{% for cmd in provision_kickstart_extra_post_commands %}
{{ cmd }}
{% endfor %}
{% endif %}
%end

0 comments on commit 58e243c

Please sign in to comment.