12 Commits

Author SHA1 Message Date
Julio Montes 3c94634676 implement envar module
update cloud-config man page
update examples
2015-11-30 15:10:23 -06:00
Julio Montes 85dcda040f implement runcmd ccmodule
this module is able to execute command lines
2015-11-27 12:46:42 -06:00
Julio Montes 7e64fbd558 add unit tests for lib
add exec_test unit test
add option --disable-tests do not build unit tests
2015-11-26 12:26:56 -06:00
Ikey Doherty d60802812b Strengthen flags to fix unused variables and unsigned vs signed comparison
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-11-25 16:27:18 +00:00
Julio Montes bbd77c21a8 enable cloud-init-firstboot service
Signed-off-by: Julio Montes <julio.montes@intel.com>
2015-11-24 10:14:32 -06:00
Julio Montes 0be3c8ebf5 implement hostname module
this module is able to set the system's hostname

add hostname module documentation
update userdata test file
2015-11-20 16:59:08 -06:00
Julio Montes 89cbfb4313 add cloud-init-firstboot service
cloud-init-firstboot service will do initial tasks
  * create and set up default user
  * get and process metadata/userdata from datasources
  * disable root login
this service will run once (firstboot)

cloud-init service won't run at the first boot
but it will do at next boot times
	* verify/fix/resize/grow up partitions and filesystems
	* get and process userdata from datasources (TODO: optional)
2015-11-20 11:06:40 -06:00
Julio Montes 9a34076e96 add functions to manipulate disks
add blkid library

functions:
* disk_for_path: is a useful function to get
  the disk path where a specific is mounted
  for instance: / -> /dev/sda
* disk_resize_grow: resizes/grows partitions and filesystems
  this function uses the last disk partition/filesystem
  for resize it
2015-11-19 15:41:15 -06:00
Julio Montes ab5f9b360d add support to verify disk partitions
add libparted dependency
update help menu
resize filesystem
2015-11-13 13:10:41 -06:00
Auke Kok 90b6d2895d Fix make distcheck.
Adding new openstack data source header file.
2015-11-09 18:16:56 +00:00
Julio Montes 1420427b61 add option to parse a custom openstack metadata file
add openstack metadata test file

Signed-off-by: Julio Montes <julio.montes@intel.com>
2015-11-09 11:59:53 -06:00
Auke Kok c7d1d9dda7 Initial commit 2015-11-05 18:38:10 +00:00