<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/config/cloud.cfg.d, branch rolling</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=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2024-06-07T10:27:59+00:00</updated>
<entry>
<title>vyos_install: T5220: Added unattended installer</title>
<updated>2024-06-07T10:27:59+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2024-06-06T11:38:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=77862f882245a62efef6095e2739d6edfb91d674'/>
<id>urn:sha1:77862f882245a62efef6095e2739d6edfb91d674</id>
<content type='text'>
Added an unattended installer, compatible with similar from VyOS 1.3.

Check the `config/cloud.cfg.d/20_vyos_install.cfg` for configuration details.
</content>
</entry>
<entry>
<title>ifupdown: T6038: Cleanup network config properly</title>
<updated>2024-05-16T00:13:51+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2024-05-16T00:12:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=70304ff90d931265cb736ace692967242c9b9729'/>
<id>urn:sha1:70304ff90d931265cb736ace692967242c9b9729</id>
<content type='text'>
Cloud-init in environments where Meta-data is available via network configures
the main interface and keeps the config in `/etc/network/interfaces.d/`.

This config later interferes with the VyOS configuration.

To avoid the problem previously the code in the `cc_vyos.py` module was used,
but this is not enough. The module is running only once during instance
deployment. But Cloud-init will re-add the config file with each boot.

There are two ways to solve this incompatibility (within Cloud-init) - disable
network config or perform cleanup during each boot.

Disabling network config is not correct in this context, because it blocks the
ability to fetch Meta-data after the first boot, which in turn blocks the
ability to run per-boot modules with an updated config.

Therefore, the cleanup code was extracted to an independent
`cc_vyos_ifupdown.py` module that performs proper cleanup with each boot.
</content>
</entry>
<entry>
<title>T2116: Enable write_files module</title>
<updated>2021-01-01T12:58:15+00:00</updated>
<author>
<name>Kim Wittenburg</name>
<email>codello@wittenburg.kim</email>
</author>
<published>2021-01-01T12:58:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=3980057ce140ea6896cd3f7cd4299cfd29cf234a'/>
<id>urn:sha1:3980057ce140ea6896cd3f7cd4299cfd29cf234a</id>
<content type='text'>
The `write_files` module allows to provides files to the system at deployment. This can be useful for situations when they are required to make a configuration valid, for example - security keys, certificates, etc.</content>
</entry>
<entry>
<title>User-Data: T2116: Added module to apply config commands at deployment</title>
<updated>2020-12-25T15:32:44+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2020-11-13T21:20:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=1607eec32641ad93ea211e447336b3366c28de06'/>
<id>urn:sha1:1607eec32641ad93ea211e447336b3366c28de06</id>
<content type='text'>
With the new `cc_vyos_userdata.py` module is possible to set in User-Data (`#cloud-config`) new parameter `vyos_config_commands`. This parameter should be a list of VyOS configuration commands that will be applied during deployment.
The module will run after the Meta-Data module `cc_vyos.py`.

Commands requirements:
 - one command per line
 - if command ending by value, it must be inside single quotes: `set some option 'value'`, `delete some option 'value'`
 - a single-quote symbol is not allowed inside command or value
The commands list produced by the `show configuration commands` command on a VyOS router should comply with all the requirements, so it is easy to get a proper commands list by copying it from another router.

Usage example (User-Data content):
```
#cloud-config
vyos_config_commands:
  - set system host-name 'demo123'
  - set system ntp server 1.pool.ntp.org
  - set system ntp server 2.pool.ntp.org
  - delete interfaces ethernet eth2 address
  - set interfaces ethernet eth2 address '192.0.2.1/24'
```
</content>
</entry>
<entry>
<title>T3039: Enabled growpart and resizefs (modified) modules</title>
<updated>2020-11-04T22:13:00+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2020-11-04T16:31:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=d0ec0c1800097250594a17e88cae28b423a8eff2'/>
<id>urn:sha1:d0ec0c1800097250594a17e88cae28b423a8eff2</id>
<content type='text'>
Since partition size is hardcoded into VyOS images for virtual environments, it is not impossible to use all available space on storage. This change enables two Cloud-init modules:
- `growpart` to grow persistence partition;
- `resizefs_vyos` to resize filesystem size to the whole partition.

The `resizefs_vyos` module forked from the main `resizefs` to allow resizing not only root partition but any custom also.
</content>
</entry>
<entry>
<title>T2117: Cloud-init updated to 20.3</title>
<updated>2020-09-15T14:05:20+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2020-09-15T14:05:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=7cd260b313267dc7123cb99a75d4555e24909cca'/>
<id>urn:sha1:7cd260b313267dc7123cb99a75d4555e24909cca</id>
<content type='text'>
Merged with 20.3 tag from the upstream Cloud-init repository
</content>
</entry>
<entry>
<title>T2117: Configuration moved from template to dedicated file</title>
<updated>2020-09-09T17:57:38+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2020-09-09T17:57:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=06bd421e2ce84f9a97e28070fede86cb2be18457'/>
<id>urn:sha1:06bd421e2ce84f9a97e28070fede86cb2be18457</id>
<content type='text'>
VyOS-specific configuration were moved from the `cloud.cfg.tmpl` to the separated file `cloud.cfg.d/10_vyos.cfg`.
With changes in the default template, some build tests failed, and everything from this default configuration can be overwritten in the config file, so there is no strict necessity to keep our changes in the configuration template.
</content>
</entry>
<entry>
<title>Default to UTF-8 in /var/log/cloud-init.log (#427)</title>
<updated>2020-06-12T19:48:53+00:00</updated>
<author>
<name>James Falcon</name>
<email>TheRealFalcon@users.noreply.github.com</email>
</author>
<published>2020-06-12T19:48:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=287bfca19d8ed386cd41dbc47753b7711ac1c848'/>
<id>urn:sha1:287bfca19d8ed386cd41dbc47753b7711ac1c848</id>
<content type='text'>
On a system with a non-utf8 default locale, the logger will silently
not log anything if the message contains an unsupported character.</content>
</entry>
<entry>
<title>config/cloud.cfg.d: update README</title>
<updated>2019-12-13T15:06:19+00:00</updated>
<author>
<name>Joshua Powers</name>
<email>josh.powers@canonical.com</email>
</author>
<published>2019-12-12T18:42:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=7765aac637a757c736674b0eb2e2993c01442dbc'/>
<id>urn:sha1:7765aac637a757c736674b0eb2e2993c01442dbc</id>
<content type='text'>
Update README to specify that only files with the '.cfg' extension are
read in this folder.

LP: #1855006
</content>
</entry>
<entry>
<title>Just use file logging by default</title>
<updated>2016-11-22T19:28:58+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>jxharlow@godaddy.com</email>
</author>
<published>2016-07-25T19:36:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=11b1aba4597379051e6b934e2b8f5a455e26ef14'/>
<id>urn:sha1:11b1aba4597379051e6b934e2b8f5a455e26ef14</id>
<content type='text'>
Instead of being dependent on the availability of syslog that
various distributions may not enable or configure correctly
or they do so via patches just use a known-to-work default
logging mechanism.  If distros want to change this, that
is fine, but at least the built-in one will work reliably.

LP: #1643990
</content>
</entry>
</feed>
