Project

General

Profile

reuse-encrypted.xml

riafarov, 2018-03-16 11:35

 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE profile>
3
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
4
  <general>
5
    <mode>
6
      <confirm config:type="boolean">true</confirm>
7
      <second_stage config:type="boolean">false</second_stage>
8
    </mode>
9
    <signature-handling>
10
      <accept_unknown_gpg_key>
11
        <all config:type="boolean">true</all>
12
      </accept_unknown_gpg_key>
13
    </signature-handling>
14
  </general>
15

    
16
  <!-- <suse_register> -->
17
  <!--   <do_registration config:type="boolean">true</do_registration> -->
18
  <!--   <reg_code>30452ce234918d23</reg_code> -->
19
  <!--   <install_updates config:type="boolean">true</install_updates> -->
20
  <!--   <addons config:type="list"> -->
21
  <!--     <addon> -->
22
  <!--       <name>sle-module-basesystem</name> -->
23
  <!--       <version>15</version> -->
24
  <!--       <arch>x86_64</arch> -->
25
  <!--     </addon> -->
26
  <!--     <addon> -->
27
  <!--       <name>sle-module-desktop-applications</name> -->
28
  <!--       <version>15</version> -->
29
  <!--       <arch>x86_64</arch> -->
30
  <!--     </addon> -->
31

    
32
  <!--     <addon> -->
33
  <!--       <name>sle-module-server-applications</name> -->
34
  <!--       <version>15</version> -->
35
  <!--       <arch>x86_64</arch> -->
36
  <!--     </addon> -->
37
  <!--     <addon> -->
38
  <!--       <name>sle-module-development-tools</name> -->
39
  <!--       <version>15</version> -->
40
  <!--       <arch>x86_64</arch> -->
41
  <!--     </addon> -->
42
  <!--   </addons> -->
43
  <!-- </suse_register> -->
44

    
45
  <networking>
46
    <keep_install_network config:type="boolean">true</keep_install_network>
47
  </networking>
48

    
49
  <software>
50
    <products config:type="list">
51
      <product>SLES</product>
52
    </products>
53
    <install_recommended config:type="boolean">false</install_recommended>
54
    <patterns config:type="list">
55
      <pattern>base</pattern>
56
    </patterns>
57
  </software>
58

    
59
  <partitioning config:type="list">
60
    <drive>
61
      <device>/dev/system</device>
62
      <disklabel>msdos</disklabel>
63
      <enable_snapshots config:type="boolean">false</enable_snapshots>
64
      <initialize config:type="boolean">false</initialize>
65
      <partitions config:type="list">
66
        <partition>
67
          <create config:type="boolean">false</create>
68
          <crypt_fs config:type="boolean">false</crypt_fs>
69
          <filesystem config:type="symbol">ext4</filesystem>
70
          <format config:type="boolean">true</format>
71
          <fstopt>acl,user_xattr</fstopt>
72
          <loop_fs config:type="boolean">false</loop_fs>
73
          <lv_name>root</lv_name>
74
          <mount>/</mount>
75
          <mountby config:type="symbol">device</mountby>
76
          <partition_nr config:type="integer">1</partition_nr>
77
          <resize config:type="boolean">false</resize>
78
          <size>10737418240</size>
79
        </partition>
80
        <partition>
81
          <create config:type="boolean">false</create>
82
          <crypt_fs config:type="boolean">false</crypt_fs>
83
          <filesystem config:type="symbol">ext4</filesystem>
84
          <format config:type="boolean">false</format>
85
          <fstopt>acl,user_xattr</fstopt>
86
          <loop_fs config:type="boolean">false</loop_fs>
87
          <lv_name>srv</lv_name>
88
          <mount>/srv</mount>
89
          <mountby config:type="symbol">device</mountby>
90
          <partition_nr config:type="integer">1</partition_nr>
91
          <resize config:type="boolean">false</resize>
92
          <size>5750390784</size>
93
        </partition>
94
        <partition>
95
          <create config:type="boolean">true</create>
96
          <crypt_fs config:type="boolean">false</crypt_fs>
97
          <filesystem config:type="symbol">swap</filesystem>
98
          <format config:type="boolean">true</format>
99
          <fstopt>defaults</fstopt>
100
          <loop_fs config:type="boolean">false</loop_fs>
101
          <lv_name>swap</lv_name>
102
          <mount>swap</mount>
103
          <mountby config:type="symbol">device</mountby>
104
          <partition_id config:type="integer">130</partition_id>
105
          <partition_nr config:type="integer">1</partition_nr>
106
          <resize config:type="boolean">false</resize>
107
          <size>268435456</size>
108
        </partition>
109
      </partitions>
110
      <pesize>4M</pesize>
111
      <type config:type="symbol">CT_LVM</type>
112
      <use>all</use>
113
    </drive>
114
    <drive>
115
      <device>/dev/vda</device>
116
      <disklabel>msdos</disklabel>
117
      <enable_snapshots config:type="boolean">false</enable_snapshots>
118
      <initialize config:type="boolean">false</initialize>
119
      <partitions config:type="list">
120
        <partition>
121
          <create config:type="boolean">false</create>
122
          <crypt_fs config:type="boolean">false</crypt_fs>
123
          <filesystem config:type="symbol">ext4</filesystem>
124
          <format config:type="boolean">true</format>
125
          <fstopt>acl,user_xattr</fstopt>
126
          <loop_fs config:type="boolean">false</loop_fs>
127
          <mount>/boot</mount>
128
          <mountby config:type="symbol">uuid</mountby>
129
          <partition_id config:type="integer">131</partition_id>
130
          <partition_nr config:type="integer">1</partition_nr>
131
          <resize config:type="boolean">true</resize>
132
          <size>410156544</size>
133
        </partition>
134
        <partition>
135
          <create config:type="boolean">false</create>
136
          <crypt_fs config:type="boolean">true</crypt_fs>
137
          <crypt_key>lcdmsdrmfsls</crypt_key>
138
          <format config:type="boolean">false</format>
139
          <loop_fs config:type="boolean">true</loop_fs>
140
          <lvm_group>system</lvm_group>
141
          <mountby config:type="symbol">device</mountby>
142
          <partition_id config:type="integer">142</partition_id>
143
          <partition_nr config:type="integer">2</partition_nr>
144
          <resize config:type="boolean">false</resize>
145
          <size>16750116352</size>
146
        </partition>
147
      </partitions>
148
      <pesize/>
149
      <type config:type="symbol">CT_DISK</type>
150
      <use>all</use>
151
    </drive>
152
  </partitioning>
153

    
154
  <language>
155
    <language>en_US</language>
156
    <languages>en_US</languages>
157
  </language>
158

    
159
  <users config:type="list">
160
    <user>
161
      <encrypted config:type="boolean">false</encrypted>
162
      <fullname>vagrant</fullname>
163
      <gid>100</gid>
164
      <home>/home/vagrant</home>
165
      <shell>/bin/bash</shell>
166
      <uid>1000</uid>
167
      <user_password>nots3cr3t</user_password>
168
      <username>vagrant</username>
169
    </user>
170
    <user>
171
      <encrypted config:type="boolean">false</encrypted>
172
      <fullname>root</fullname>
173
      <gid>0</gid>
174
      <home>/root</home>
175
      <shell>/bin/bash</shell>
176
      <uid>0</uid>
177
      <user_password>nots3cr3t</user_password>
178
      <username>root</username>
179
    </user>
180
  </users>
181

    
182
  <scripts>
183
    <chroot-scripts config:type="list">
184
      <script>
185
        <chrooted config:type="boolean">true</chrooted>
186
        <filename>enable-ssh-service.sh</filename>
187
        <interpreter>shell</interpreter>
188
        <source><![CDATA[
189
#!/bin/sh
190
/usr/bin/systemctl enable sshd.service
191
/usr/bin/systemctl disable firewalld.service
192
  ]]>
193
        </source>
194
      </script>
195
      <script>
196
        <chrooted config:type="boolean">true</chrooted>
197
        <filename>yast_clone.sh</filename>
198
        <interpreter>shell</interpreter>
199
        <location/>
200
        <feedback config:type="boolean">false</feedback>
201
        <source><![CDATA[#!/bin/sh
202
mv /var/run/zypp.pid /var/run/zypp.sav
203
test -f /root/autoinst.xml && rm /root/autoinst.xml
204
yast clone_system
205
mv /var/run/zypp.sav /var/run/zypp.pid
206
        ]]></source>
207
      </script>
208
    </chroot-scripts>
209
  </scripts>
210
</profile>