Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Friday, October 9, 2015

How to run cloud-init manually

1)
$rm -rf /var/lib/cloud/*
OR
$rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/*

2)
$cloud-init init

$cloud-init modules -m final


3)
$tail -f /var/log/cloud-init.log

$tail -f /var/log/cloud-init-output.log


2 comments:

  1. https://raymii.org/s/tutorials/Automating_Openstack_with_Cloud_init_run_a_script_on_VMs_first_boot.html

    ReplyDelete
  2. a)
    $vim /etc/cloud/cloud.cfg

    cloud_final_modules:
    - rightscale_userdata
    - scripts-vendor
    - scripts-per-once
    - scripts-per-boot
    - scripts-per-instance
    - scripts-user
    - ssh-authkey-fingerprints
    - keys-to-console
    - phone-home
    - final-message
    - power-state-change

    b)
    $dpkg -L cloud-init

    ReplyDelete