Skip to content

Commit c22aa34

Browse files
authored
Merge pull request #192 from sus-admin/formatting+typo-fixes
Formatting+typo fixes
2 parents 7ff31a7 + 25a36a1 commit c22aa34

14 files changed

+534
-513
lines changed

_includes/autoinstall_done

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#set system_name = $getVar('system_name','')
2+
#set profile_name = $getVar('profile_name','')
3+
#if $system_name != ''
4+
#set object_type = 'system'
5+
#set object_name = $system_name
6+
#else if $profile_name != ''
7+
#set object_type = 'profile'
8+
#set object_name = $profile_name
9+
#else
10+
#set object_type = ''
11+
#set object_name = ''
12+
#end if
13+
#set breed = $getVar('breed','')
14+
#set os_version = $getVar('os_version','')
15+
#set srv = $getVar('http_server','')
16+
#set autoinstall = $getVar('autoinstall','')
17+
#set run_install_triggers = $getVar('run_install_triggers','')
18+
#set pxe_just_once = $getVar('pxe_just_once','')
19+
#set nopxe = ""
20+
#set save_autoinstall = ""
21+
#set runpost = ""
22+
#if $system_name != ''
23+
## PXE JUST ONCE
24+
#if $pxe_just_once
25+
#if $breed == 'redhat'
26+
#set nopxe = "\ncurl \"http://%s/cblr/svc/op/nopxe/system/%s\" -o /dev/null" % (srv, system_name)
27+
#else if $breed == 'vmware' and $os_version == 'esx4'
28+
#set nopxe = "\ncurl \"http://%s/cblr/svc/op/nopxe/system/%s\" -o /dev/null" % (srv, system_name)
29+
#else
30+
#set nopxe = "\nwget \"http://%s/cblr/svc/op/nopxe/system/%s\" -O /dev/null" % (srv, system_name)
31+
#end if
32+
#end if
33+
#end if
34+
#if $object_type != ''
35+
## SAVE AUTO INSTALLATION
36+
#if $autoinstall != ''
37+
#if $breed == 'redhat'
38+
#set save_autoinstall = "\ncurl \"http://%s/cblr/svc/op/autoinstall/%s/%s\" -o /root/cobbler.ks" % (srv, object_type, object_name)
39+
#else if $breed == 'suse'
40+
#set save_autoinstall = "\ncurl \"http://%s/cblr/svc/op/autoinstall/%s/%s\" -o /root/cobbler.xml" % (srv, object_type, object_name)
41+
#else if $breed == 'vmware' and $os_version == 'esx4'
42+
#set save_autoinstall = "\ncurl \"http://%s/cblr/svc/op/autoinstall/%s/%s\" -o /root/cobbler.ks" % (srv, object_type, object_name)
43+
#else if $breed == 'vmware'
44+
#set save_autoinstall = "\nwget \"http://%s/cblr/svc/op/autoinstall/%s/%s\" -O /var/log/cobbler.ks" % (srv, object_type, object_name)
45+
#else if $breed == 'debian' or $breed == 'ubuntu'
46+
#set save_autoinstall = "\nwget \"http://%s/cblr/svc/op/autoinstall/%s/%s\" -O /var/log/cobbler.seed" % (srv, object_type, object_name)
47+
#end if
48+
#end if
49+
## RUN POST TRIGGER
50+
#if $run_install_triggers
51+
#if $breed == 'redhat' or $breed == 'suse'
52+
#set runpost = "\ncurl \"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -o /dev/null" % (srv, object_type, object_name)
53+
#else if $breed == 'vmware' and $os_version == 'esx4'
54+
#set runpost = "\ncurl \"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -o /dev/null" % (srv, object_type, object_name)
55+
#else
56+
#set runpost = "\nwget \"http://%s/cblr/svc/op/trig/mode/post/%s/%s\" -O /dev/null" % (srv, object_type, object_name)
57+
#end if
58+
#end if
59+
#end if
60+
#echo $nopxe
61+
#echo $save_autoinstall
62+
#echo $runpost

_includes/autoinstall_done.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

_includes/autoinstall_start

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#set system_name = $getVar('system_name','')
2+
#set profile_name = $getVar('profile_name','')
3+
#if $system_name != ''
4+
#set object_type = 'system'
5+
#set object_name = $system_name
6+
#else if $profile_name != ''
7+
#set object_type = 'profile'
8+
#set object_name = $profile_name
9+
#else
10+
#set object_type = ''
11+
#set object_name = ''
12+
#end if
13+
#set breed = $getVar('breed','')
14+
#set srv = $getVar('http_server','')
15+
#set run_install_triggers = $getVar('run_install_triggers','')
16+
#set runpre = ""
17+
#if $object_type != ''
18+
## RUN PRE TRIGGER
19+
#if $run_install_triggers
20+
#if $breed == 'redhat' or $breed == 'suse'
21+
#set runpre = "\ncurl \"http://%s/cblr/svc/op/trig/mode/pre/%s/%s\" -o /dev/null" % (srv, object_type, object_name)
22+
#else
23+
#set runpre = "\nwget \"http://%s/cblr/svc/op/trig/mode/pre/%s/%s\" -O /dev/null" % (srv, object_type, object_name)
24+
#end if
25+
#end if
26+
#end if
27+
#echo $runpre

_includes/autoinstall_start.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

_includes/example-preseed-excerpt.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
### Apt setup
2+
# Choose, if you want to scan additional installation media
3+
# (default: false).
4+
d-i apt-setup/cdrom/set-first boolean false
5+
# You can choose to install non-free firmware.
6+
#d-i apt-setup/non-free-firmware boolean true
7+
# You can choose to install non-free and contrib software.
8+
#d-i apt-setup/non-free boolean true
9+
#d-i apt-setup/contrib boolean true
10+
# Uncomment the following line, if you don't want to have the sources.list
11+
# entry for a DVD/BD installation image active in the installed system
12+
# (entries for netinst or CD images will be disabled anyway, regardless of
13+
# this setting).
14+
#d-i apt-setup/disable-cdrom-entries boolean true
15+
# Uncomment this if you don't want to use a network mirror.
16+
#d-i apt-setup/use_mirror boolean false
17+
# Select which update services to use; define the mirrors to be used.
18+
# Values shown below are the normal defaults.
19+
#d-i apt-setup/services-select multiselect security, updates
20+
#d-i apt-setup/security_host string security.debian.org
21+
22+
# Additional repositories, local[0-9] available
23+
#d-i apt-setup/local0/repository string \
24+
# http://local.server/debian stable main
25+
#d-i apt-setup/local0/comment string local server
26+
# Enable deb-src lines
27+
#d-i apt-setup/local0/source boolean true
28+
# URL to the public key of the local repository; you must provide a key or
29+
# apt will complain about the unauthenticated repository and so the
30+
# sources.list line will be left commented out.
31+
#d-i apt-setup/local0/key string http://local.server/key
32+
# or one can provide it in-line by base64 encoding the contents of the
33+
# key file (with `base64 -w0`) and specifying it thus:
34+
#d-i apt-setup/local0/key string base64://LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCi4uLgo=
35+
# The content of the key file is checked to see if it appears to be ASCII-armoured.
36+
# If so it will be saved with an ".asc" extension, otherwise it gets a '.gpg' extension.
37+
# "keybox database" format is currently not supported. (see generators/60local in apt-setup's source)
38+
39+
# By default the installer requires that repositories be authenticated
40+
# using a known gpg key. This setting can be used to disable that
41+
# authentication. Warning: Insecure, not recommended.
42+
#d-i debian-installer/allow_unauthenticated boolean true

_includes/example-preseed-excerpt.txt.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

_includes/suse-15.6-autoyast.xml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE profile>
3+
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
4+
<deploy_image>
5+
<image_installation config:type="boolean">false</image_installation>
6+
</deploy_image>
7+
## without the next 6 lines autoyast will ask for confirmation bevore installation
8+
<general>
9+
<mode>
10+
<confirm config:type="boolean">false</confirm>
11+
<final_reboot config:type="boolean">true</final_reboot>
12+
</mode>
13+
</general>
14+
$SNIPPET('addons.xml')
15+
$SNIPPET('hosts.xml')
16+
<ntp-client>
17+
<ntp_policy>auto</ntp_policy>
18+
<ntp_servers config:type="list">
19+
<ntp_server>
20+
<address>us.pool.ntp.org</address>
21+
<iburst config:type="boolean">false</iburst>
22+
<offline config:type="boolean">false</offline>
23+
</ntp_server>
24+
<ntp_server>
25+
<address>2.opensuse.pool.ntp.org</address>
26+
<iburst config:type="boolean">false</iburst>
27+
<offline config:type="boolean">false</offline>
28+
</ntp_server>
29+
</ntp_servers>
30+
<ntp_sync>15</ntp_sync>
31+
</ntp-client>
32+
$SNIPPET('kdump.xml')
33+
<keyboard>
34+
<keymap>us</keymap>
35+
</keyboard>
36+
<language>
37+
<language>en_US</language>
38+
<languages></languages>
39+
</language>
40+
<timezone>
41+
<hwclock>UTC</hwclock>
42+
<timezone>EST5EDT</timezone>
43+
</timezone>
44+
<software>
45+
<packages config:type="list">
46+
<package>chrony</package>
47+
<package>sudo</package>
48+
<package>openssh</package>
49+
</packages>
50+
</software>
51+
<services-manager>
52+
<services>
53+
<enable config:type="list">
54+
<service>sshd</service>
55+
</enable>
56+
</services>
57+
</services-manager>
58+
<login_settings/>
59+
$SNIPPET('suse-15.6-networking.xml')
60+
<users config:type="list">
61+
<user>
62+
<encrypted config:type="boolean">true</encrypted>
63+
<fullname>root</fullname>
64+
<gid>0</gid>
65+
<home>/root</home>
66+
<password_settings>
67+
<expire></expire>
68+
<flag></flag>
69+
<inact></inact>
70+
<max></max>
71+
<min></min>
72+
<warn></warn>
73+
</password_settings>
74+
<shell>/bin/bash</shell>
75+
<uid>0</uid>
76+
<user_password>$default_password_crypted</user_password>
77+
<username>root</username>
78+
</user>
79+
<user>
80+
<encrypted config:type="boolean">true</encrypted>
81+
<username>suse</username>
82+
<user_password>$default_password_crypted</user_password>
83+
</user>
84+
</users>
85+
<scripts>
86+
## we have to include the pre-scripts tag to get autoinstall_start included
87+
<pre-scripts config:type="list">
88+
#set global $wrappedscript = 'autoinstall_start'
89+
$SNIPPET('suse-15.6_scriptwrapper.xml')
90+
## SuSE has an annoying habit on ppc64 of changing the system
91+
## boot order after installation. This makes it non-trivial to
92+
## automatically re-install future OS.
93+
#set global $wrappedscript = 'save_boot_device'
94+
$SNIPPET('suse-15.6_scriptwrapper.xml')
95+
</pre-scripts>
96+
<post-scripts config:type="list">
97+
##
98+
## This plugin wrapper provides the flexibility to call pure shell
99+
## snippets which can be used directly on autoinst file and with
100+
## wrapper on SuSE.
101+
##
102+
## To use it
103+
## - exchange name_of_pure_shell_snippet with the name of this shell snippet
104+
## - and remove the '##' in front of the line with suse-15.6_scriptwrapper.xml
105+
##
106+
#set global $wrappedscript = 'name_of_pure_shell_snippet'
107+
## $SNIPPET('suse-15.6_scriptwrapper.xml')
108+
109+
## SuSE has an annoying habit on ppc64 of changing the system
110+
## boot order after installation. This makes it non-trivial to
111+
## automatically re-install future OS.
112+
#set global $wrappedscript = 'restore_boot_device'
113+
$SNIPPET('suse-15.6_scriptwrapper.xml')
114+
</post-scripts>
115+
## we have to include the init-scripts tag to get autoinstall_done included
116+
<init-scripts config:type="list">
117+
#set global $wrappedscript = 'autoinstall_done'
118+
$SNIPPET('suse-15.6_scriptwrapper.xml')
119+
</init-scripts>
120+
</scripts>
121+
</profile>

0 commit comments

Comments
 (0)