diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-10-23 17:47:19 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-10-23 17:47:19 -0700 |
commit | ba09a65a307651144a72a0a0e554895ac0440c45 (patch) | |
tree | 3daafd06384f438f5c1d7123ce7cfdaf1cc8892f /cloudinit/config/cc_ubuntu_init_switch.py | |
parent | dd1853b5b64c43995e33c129bc71def9f4bad0ce (diff) | |
download | vyos-cloud-init-ba09a65a307651144a72a0a0e554895ac0440c45.tar.gz vyos-cloud-init-ba09a65a307651144a72a0a0e554895ac0440c45.zip |
Add the beginnings of module documentation
Diffstat (limited to 'cloudinit/config/cc_ubuntu_init_switch.py')
-rw-r--r-- | cloudinit/config/cc_ubuntu_init_switch.py | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/cloudinit/config/cc_ubuntu_init_switch.py b/cloudinit/config/cc_ubuntu_init_switch.py index 6f994bff..b23f70c7 100644 --- a/cloudinit/config/cc_ubuntu_init_switch.py +++ b/cloudinit/config/cc_ubuntu_init_switch.py @@ -17,30 +17,27 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. """ -ubuntu_init_switch: reboot system into another init +**Summary:** reboot system into another init. -This provides a way for the user to boot with systemd even if the -image is set to boot with upstart. It should be run as one of the first -cloud_init_modules, and will switch the init system and then issue a reboot. -The next boot will come up in the target init system and no action will +**Description:** This module provides a way for the user to boot with systemd +even if the image is set to boot with upstart. It should be run as one of the +first cloud_init_modules, and will switch the init system and then issue a +reboot. The next boot will come up in the target init system and no action will be taken. This should be inert on non-ubuntu systems, and also exit quickly. -config is comes under the top level 'init_switch' dictionary. +It can be configured with the following option structure:: -#cloud-config -init_switch: - target: systemd - reboot: true + init_switch: + target: systemd (can be 'systemd' or 'upstart') + reboot: true (reboot if a change was made, or false to not reboot) -'target' can be 'systemd' or 'upstart'. Best effort is made, but its possible -this system will break, and probably won't interact well with any other -mechanism you've used to switch the init system. +.. note:: -'reboot': [default=true]. - true: reboot if a change was made. - false: do not reboot. + Best effort is made, but it's possible + this system will break, and probably won't interact well with any other + mechanism you've used to switch the init system. """ from cloudinit.settings import PER_INSTANCE |