Revision 1890ca8d
Added by Dominic Cleal about 9 years ago
app/views/unattended/kickstart/provision.erb | ||
---|---|---|
- Fedora 19
|
||
- Fedora 20
|
||
%>
|
||
<%#
|
||
This template accepts the following parameters:
|
||
- lang: string (default="en_US.UTF-8")
|
||
- keyboard: string (default="us")
|
||
- time-zone: string (default="UTC")
|
||
- http-proxy: string (default="")
|
||
- http-proxy-port: string (default="")
|
||
- force-puppet: boolean (default=false)
|
||
- enable-puppetlabs-repo: boolean (default=false)
|
||
- salt_master: string (default=undef)
|
||
- ntp-server: string (default="0.fedora.pool.ntp.org")
|
||
%>
|
||
<%
|
||
rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name != 'Fedora'
|
||
os_major = @host.operatingsystem.major.to_i
|
||
... | ... | |
<%= @mediapath %><%= proxy_string %>
|
||
lang <%= @host.params['lang'] || 'en_US.UTF-8' %>
|
||
selinux --enforcing
|
||
keyboard us
|
||
keyboard <%= @host.params['keyboard'] || 'us' %>
|
||
skipx
|
||
|
||
<% subnet = @host.subnet -%>
|
app/views/unattended/kickstart/provision_rhel.erb | ||
---|---|---|
- RedHat 6
|
||
- RedHat 7
|
||
%>
|
||
<%#
|
||
This template accepts the following parameters:
|
||
- lang: string (default="en_US.UTF-8")
|
||
- keyboard: string (default="us")
|
||
- time-zone: string (default="UTC")
|
||
- http-proxy: string (default="")
|
||
- http-proxy-port: string (default="")
|
||
- force-puppet: boolean (default=false)
|
||
- enable-puppetlabs-repo: boolean (default=false)
|
||
- salt_master: string (default=undef)
|
||
- ntp-server: string (default="0.fedora.pool.ntp.org")
|
||
%>
|
||
<%
|
||
os_major = @host.operatingsystem.major.to_i
|
||
# safemode renderer does not support unary negation
|
||
... | ... | |
<%= @mediapath %><%= proxy_string %>
|
||
lang <%= @host.params['lang'] || 'en_US.UTF-8' %>
|
||
selinux --enforcing
|
||
keyboard us
|
||
keyboard <%= @host.params['keyboard'] || 'us' %>
|
||
skipx
|
||
|
||
<% subnet = @host.subnet -%>
|
app/views/unattended/preseed/userdata.erb | ||
---|---|---|
- Debian 8.
|
||
- Ubuntu 12.04
|
||
- Ubuntu 14.04
|
||
%>
|
||
-%>
|
||
#!/bin/bash
|
||
|
||
<%# Cloud instances frequently have incorrect hosts data %>
|
app/views/unattended/snippets/_freeipa_register.erb | ||
---|---|---|
# >=ipa-client-4.1.0 automatically configures sssd for sudo
|
||
# =<ipa-client-3 requires manual configuration which this snippet takes care of
|
||
|
||
if [ $freeipa_client_version_major -le 4 ]
|
||
if [ $freeipa_client_version_major -lt 4 ]
|
||
then
|
||
# Modify sssd.conf
|
||
sed -i -e "s/services = .*/\0, sudo/" /etc/sssd/sssd.conf
|
app/views/unattended/snippets/_puppet.conf.erb | ||
---|---|---|
report = true
|
||
ignoreschedules = true
|
||
daemon = false
|
||
<%- if @host.puppet_ca_server.strip -%>
|
||
ca_server = <%= @host.puppet_ca_server %>
|
||
<%- end -%>
|
||
certname = <%= @host.certname %>
|
||
environment = <%= @host.environment %>
|
||
server = <%= @host.puppetmaster %>
|
Also available in: Unified diff
templates - sync from community-templates
(cherry picked from commit 7f55c8958e28c6fc1802e30b2767670c167702dc)