<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/templates, branch 20.4</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=20.4</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=20.4'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2020-08-19T23:18:25+00:00</updated>
<entry>
<title>Add Alpine Linux support. (#535)</title>
<updated>2020-08-19T23:18:25+00:00</updated>
<author>
<name>dermotbradley</name>
<email>dermot_bradley@yahoo.com</email>
</author>
<published>2020-08-19T23:18:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=79a8ce7e714ae1686c10bff77612eab0f6eccc95'/>
<id>urn:sha1:79a8ce7e714ae1686c10bff77612eab0f6eccc95</id>
<content type='text'>
Add new module cc_apk_configure for creating Alpine /etc/apk/repositories file.
Modify cc_ca_certs, cc_ntp, cc_power_state_change, and cc_resolv_conf for Alpine.
Add Alpine template files for Chrony and Busybox NTP support.
Add Alpine template file for /etc/hosts.

</content>
</entry>
<entry>
<title>Add update_etc_hosts as default module on *BSD (#479)</title>
<updated>2020-07-07T13:20:11+00:00</updated>
<author>
<name>Adam Dobrawy</name>
<email>ad-m@users.noreply.github.com</email>
</author>
<published>2020-07-07T13:20:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=d373a8e1ae602c98bf89dc962d0d2a27815fb183'/>
<id>urn:sha1:d373a8e1ae602c98bf89dc962d0d2a27815fb183</id>
<content type='text'>
* Add update_etc_hosts as default module on *BSD
* Set preference of IPv6 over IPv4 in FreeBSD /etc/hosts</content>
</entry>
<entry>
<title>Enable chef_license support for chef infra client (#389)</title>
<updated>2020-05-27T22:49:38+00:00</updated>
<author>
<name>Bipin Bachhao</name>
<email>bipinbachhao@gmail.com</email>
</author>
<published>2020-05-27T22:49:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=0919bd46bbd1b12158c369569ec1298bb000dd8a'/>
<id>urn:sha1:0919bd46bbd1b12158c369569ec1298bb000dd8a</id>
<content type='text'>
Co-authored-by: Daniel Watkins &lt;oddbloke@ubuntu.com&gt;</content>
</entry>
<entry>
<title>make suse and sles support 127.0.1.1 (#336)</title>
<updated>2020-05-07T17:01:22+00:00</updated>
<author>
<name>chengcheng-chcheng</name>
<email>63850735+chengcheng-chcheng@users.noreply.github.com</email>
</author>
<published>2020-05-07T17:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=b24b376fabd54e4dc96ffc1b90a984addf42fc4c'/>
<id>urn:sha1:b24b376fabd54e4dc96ffc1b90a984addf42fc4c</id>
<content type='text'>
Move from 127.0.0.1 to 127.0.1.1 for localhost IP addr for opensuse and sles</content>
</entry>
<entry>
<title>cc_resolv_conf: introduce tests and stabilise output across Python versions (#251)</title>
<updated>2020-03-13T19:49:42+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-03-13T19:49:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=1426a0d036a7f6707aac142a51f155f507d26739'/>
<id>urn:sha1:1426a0d036a7f6707aac142a51f155f507d26739</id>
<content type='text'>
This is a follow-up to #144 which fixed the rendering behaviour.

While writing the tests, CI failed due to dict iteration differences across Python versions, so this also sorts output so that we will produce the same output across Python versions.</content>
</entry>
<entry>
<title>fix minor issue with resolv_conf template (#144)</title>
<updated>2020-03-12T21:13:28+00:00</updated>
<author>
<name>andreaf74</name>
<email>53090017+andreaf74@users.noreply.github.com</email>
</author>
<published>2020-03-12T21:13:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=04647a3cb03bfaa29242cff02f3de9b0ac799f89'/>
<id>urn:sha1:04647a3cb03bfaa29242cff02f3de9b0ac799f89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>templates/ntp.conf.debian.tmpl: fix missing newline for pools</title>
<updated>2019-07-16T20:57:32+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2019-07-16T20:57:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=14048171f8e5273b1b82c6d2ed5675a7d1a6eeb6'/>
<id>urn:sha1:14048171f8e5273b1b82c6d2ed5675a7d1a6eeb6</id>
<content type='text'>
The debian ntp.conf template did not contain a newline for the
comment used to mark the rendered ntp pools configured.  This
resulted in an invalid line:

'# poolspool 0.int.pool.ntp.org iburst'

rather than:

'# pools
 pool 0.int.pool.ntp.org iburst'

This patch fixes the template and updates the unittest to
verify that the rendered templates puts servers and pools
at the beginning of a line.

LP: #1836598
</content>
</entry>
<entry>
<title>Enable encrypted_data_bag_secret support for Chef</title>
<updated>2019-02-25T19:09:39+00:00</updated>
<author>
<name>Eric Williams</name>
<email>eric@subcritical.org</email>
</author>
<published>2019-02-25T19:09:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=8cfcc28db1acc7594dbbf76b846f4964f40f9e63'/>
<id>urn:sha1:8cfcc28db1acc7594dbbf76b846f4964f40f9e63</id>
<content type='text'>
Encrypted data bags require a secrets file to be present to
decrypt, and the location of the file must be configured the
Chef client configuration file, client.rb.

This update enables cloud-init's chef module to update that
setting in client.rb.

LP: #1817082
</content>
</entry>
<entry>
<title>Ubuntu: update sources.list to comment out deb-src entries.</title>
<updated>2018-10-04T18:20:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-10-04T18:20:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=d3e803ad316e6796e5d83e7e8f8f4f7224b92df9'/>
<id>urn:sha1:d3e803ad316e6796e5d83e7e8f8f4f7224b92df9</id>
<content type='text'>
Other installation modes began to comment out the deb-src lines in
/etc/apt/sources.list sometime in 16.04 time frame.

This makes the cloud-init rendered sources.list the same as that
currently present in the lxd images.

The changes here are:
 a.) comment out all 'deb-src' lines.
 b.) move security to the bottom of the file.
 c.) trim trailing white space from 3 comment lines.

LP: #74747
</content>
</entry>
<entry>
<title>renderer: support unicode in render_from_file.</title>
<updated>2018-04-12T21:51:07+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-04-12T21:51:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=4b86ab9a25b512420ecfe98953a3f3a6e4b4bba1'/>
<id>urn:sha1:4b86ab9a25b512420ecfe98953a3f3a6e4b4bba1</id>
<content type='text'>
If a file passed to render_from_file had non-ascii text then
jinja in python2 would decode as ascii, which would cause
UnicodeDecodeError.  This issue can be re-created in python2
with just:
 'can\xe2\x80\x99t'.decode()

The solution here is to explicitly pass in unicode supporting
type (py3 str, py2 unicode).  Those are six.text_type.
Then jinja does not try to decode.

The reason we hit this is that load_file calls decode_binary.
decode_binary believes it has no work to do if it got a six.string_types.
  isinstance('can\xe2\x80\x99t', six.string_types) == True
So it returns the original string which will blow up for jinja.

Our fix here then is to load the file in binary mode and explicitly
decode it to utf-8.  Then in python2 we'll have a unicode type
and in python3 we'll have a string type.
</content>
</entry>
</feed>
