Julio Montes
31b04b7a89
update version from v1 to v2
v2
2015-11-19 16:10:44 -06:00
Julio Montes
29b0f75036
fix partition/filesystem resizing and growing
...
remove get_partition function because now we have
other functions to manipulate disks
2015-11-19 15:56:06 -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
616fb9d6f7
update manpage
...
add openstack-metadata-file option to manpage
2015-11-18 13:57:18 -06:00
Julio Montes
8f463d81d0
style fixes
2015-11-18 12:19:04 -06:00
Julio Montes
096cff3959
fix typos
...
change help menu message
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-18 12:10:18 -06:00
Auke Kok
b554149019
Update cli command to add a bundle.
2015-11-17 21:56:38 +00:00
Auke Kok
98e02ec548
New command line tool format.
2015-11-17 21:55:36 +00:00
Auke Kok
baaf9c6546
write_files: assure path to file exists with mkdir -p.
...
We call `mkdir -p` for easy code here, but we still have to
split the path into dirname first and check if we actually
have to create it or not, and try and catch any errors in that
path.
2015-11-17 21:17:41 +00:00
Auke Kok
4befc0f2cf
Falling through this loop means an error, so return NULL.
2015-11-16 23:07:36 +00:00
Auke Kok
f2185adb69
Accidentally listed stdlib.h twice here.
2015-11-16 22:43:14 +00:00
Auke Kok
4dc25a468a
Catch mkstemp error, just in case.
2015-11-16 22:42:43 +00:00
Auke Kok
12c28f324a
Remove an unneeded goto.
...
This goto was leaking a file descriptor, and it uses more
lines of code than it saves.
2015-11-16 22:31:42 +00: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
Julio Montes
e9684aed39
add function to find the partition of a mount point
2015-11-13 10:53:23 -06:00
Julio Montes
b57882ba89
fix exit values
...
add enums for long options
update help menu
2015-11-12 21:02:07 -06:00
Julio Montes
4b19805315
update version from v0 to v1
v1
2015-11-11 13:20:46 -06:00
Auke Kok
ec4841a0f1
Add section describing user-data formats supported.
...
user-data can be either in the cloud-config format, or
a shell script. This paragraph adds this difference and
how it's treated.
2015-11-09 22:25:19 +00:00
Auke Kok
7cefb90110
Add a hint for debug output when reporting bugs.
2015-11-09 22:12:59 +00:00
Julio Montes
e304dde92d
write 'hostname' to /etc/hostname file
...
fix format help menu
2015-11-09 13:12:46 -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
Julio Montes
959cc765a0
add function to parse openstack metadata
...
fix memory leaks
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-09 11:58:00 -06:00
Julio Montes
30da0983a9
fix group creation (CLEAR-1005)
...
fix user creation with a list of groups
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-06 16:27:07 -06:00
Julio Montes
9f0bc896ff
fix lock root account
...
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-06 13:05:02 -06:00
Julio Montes
c32ad80e6a
lock root account for security
...
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-06 08:54:49 -06:00
Julio Montes
9093629dc4
ccmodules uses write_sudo_string and write_ssh_key
...
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-06 08:11:56 -06:00
Julio Montes
8382f8d76e
openstack datasource uses write_ssh_key to write SSH keys
...
fix list of FIXES
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-06 08:09:18 -06:00
Julio Montes
f688887147
add DEFAULT_USER_GROUPS to default user
...
write DEFAULT_USER_SUDO rule
add groups (-G) to default user
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-05 16:40:12 -06:00
Julio Montes
7542396ef1
add util functions to manipulate files and directories
...
write_sudo_string: add rules to /etc/sudoers.d/
write_ssh_key: add pub keys to ~/.ssh/autorized_keys
Signed-off-by: Julio Montes <julio.montes@intel.com >
2015-11-05 16:28:25 -06:00
Auke Kok
a6ab9a7395
Update README so a useful description is at the top.
2015-11-05 22:09:28 +00:00
Auke Kok
c7d1d9dda7
Initial commit
v0
2015-11-05 18:38:10 +00:00