Julio Montes
8031cb536d
implement openstack files metadata handler
2016-01-15 14:32:51 -06:00
Julio Montes
2442c42a78
improve copy_file function
...
copy_files is able to create destination
directory when it does not exist
2016-01-15 14:22:48 -06:00
Julio Montes
0238e90480
fix third argument required when O_CREAT is used
2016-01-15 12:26:16 -06:00
Julio Montes
6d32759602
fix openstack_process_config_drive function
...
user can choose what data process in config drive
using --metadata and/or --user-data options
2016-01-15 11:28:36 -06:00
Julio Montes
823d20be0d
simplify openstack_process_config_drive function
2016-01-15 11:17:15 -06:00
Julio Montes
18bc3c8d47
implement function to copy files
2016-01-15 11:16:06 -06:00
Julio Montes
d37fc30057
simplify openstack_use_metadata_service function
2016-01-15 10:15:10 -06:00
Julio Montes
6da1266de9
fix indent style
2016-01-14 16:50:06 -06:00
Julio Montes
d163e1daf7
fix to avoid close pid 0
2016-01-14 16:28:23 -06:00
Julio Montes
3be58dcd04
add command line option to process openstack config drive
...
add --openstack-config-drive option to process metadata and
userdata using as datasource an openstack config drive
(iso9660 or vfat filesystem)
add type_by_device function to get the disk type
2016-01-14 15:01:26 -06:00
Julio Montes
f04ab8e1bc
fix exec_task function
...
exec_task returns true if exit_code is 0,
otherwise false is returned
2016-01-13 17:14:59 -06:00
Julio Montes
fbdd5b80e6
fix exit code
...
clr-cloud-init has different ways to process
metadata and userdata, when one of these ways fail
the exit code will be EXIT_FAILURE(1)
2016-01-13 10:28:20 -06:00
Julio Montes
070532abd5
fix memory leak
...
fix userdata realpath
improve metadata file progressing
2016-01-12 14:11:28 -06:00
Julio Montes
6550a22c7e
modify ambiguous logs
2016-01-08 19:57:13 -06:00
Julio Montes
ca9201a890
modify default sudo directive to use default user
2016-01-08 19:55:53 -06:00
Julio Montes
5c2a90c19d
improve performance using threads and async tasks
...
async tasks:
* fix disk
* setup root user
* write sudo directives
2016-01-08 19:53:17 -06:00
Julio Montes
ce8db119fa
add function to exec async tasks
...
improve make_dir function to create parent directories (mkdir -p)
2016-01-08 19:49:59 -06:00
Julio Montes
3d9cc12726
use threads to run openstack metadata handlers
...
improve openstack datasource logs
2015-12-22 12:58:24 -06:00
Julio Montes
4439a9130a
lock default user account for security
2015-12-21 12:07:28 -06:00
Julio Montes
1c65ac2509
improve copy file algorithm
...
fix memory leaks
2015-12-21 11:12:17 -06:00
Julio Montes
1ff6bf3883
fix make distcheck
2015-12-18 13:27:20 -06:00
Julio Montes
78c920d68b
fix run userdata on config drive
2015-12-18 13:22:38 -06:00
Julio Montes
ba7e8a52da
add threads to improve resize filesystem time
2015-12-17 16:11:57 -06:00
Julio Montes
2041ba96c4
process metadata before userdata
2015-12-15 16:28:30 -06:00
Julio Montes
5ee5a5311a
fix problem running shell scripts
2015-12-15 15:22:27 -06:00
Julio Montes
b8055a4530
add support for config drive
2015-12-14 16:04:22 -06:00
Julio Montes
43c5734e3f
fix performance issue
2015-12-10 16:24:55 -06:00
Julio Montes
275bb5ba83
add missing header in curl.h
2015-12-10 15:45:31 -06:00
Julio Montes
effa40da76
fix chmod in write_file function
2015-12-10 14:39:45 -06:00
Julio Montes
5ac625c5db
fix spawn commands
2015-12-10 10:30:27 -06:00
Julio Montes
d3b7e6cee4
update help menu and man pages
2015-12-09 10:19:43 -06:00
Julio Montes
df2541a4fd
fix spawn commands
2015-12-08 15:14:47 -06:00
Julio Montes
4661ac8cc9
Ensure we use the explicit path to binaries
2015-12-08 11:28:55 -06:00
Julio Montes
40203e6bee
add openstack-user-data and openstack-metadata options
...
update man pages
2015-12-07 16:03:07 -06:00
Julio Montes
e19f39ed03
add time to logs
2015-12-02 09:07:31 -06:00
Julio Montes
d41da9c997
using SYSCONFDIR define
...
change g_strlcat by g_strlcpy in envar module
2015-12-01 10:19:54 -06:00
Julio Montes
b4ba31b3d0
remove write_envar function
...
remove write_envar function because is a specialized
version of write_file
add config define SYSCONFDIR
2015-12-01 10:08:53 -06:00
Julio Montes
19734ef259
improve write_* functions
...
write_sudo_string is renamed to write_sudo_directives
write_ssh_key is renamed to write_ssh_keys
now these functions use buffers to improve
access to disk (open/write/close functions)
2015-11-30 16:29:32 -06:00
Julio Montes
3c94634676
implement envar module
...
update cloud-config man page
update examples
2015-11-30 15:10:23 -06:00
Julio Montes
7d330ee7d1
add function to write environment variables in /etc/profile.d/
2015-11-30 15:06:14 -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
d4963adb31
remove new line in output and error logs
2015-11-27 12:41:42 -06:00
Julio Montes
97b7691f3b
add exec_task standard output to logging system
2015-11-26 12:01:21 -06:00
Ikey Doherty
24b84ba453
Make write_ssh_key bool for clarity, ensure return value
...
In future we should convert openstack_metadata_keys to a boolean function,
and make sure it breaks iteration of the GNode when hitting a failure,
similar to other areas within clr-cloud-init
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-11-25 16:29:59 +00:00
Ikey Doherty
3f93a3b249
Make write_sudo_string bool for clarity, ensure return value is used
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-11-25 16:29:27 +00:00
Ikey Doherty
356fc5c1df
lib: Ensure return values aren't ignored for errno types
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-11-25 16:28:44 +00:00
Ikey Doherty
5579bb59f5
debug: Also catch unused parameter
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-11-25 16:28:15 +00:00
Ikey Doherty
939a0ffe76
write_files: Address potential memory leak found in static analysis
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-11-25 16:27:46 +00: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
Ikey Doherty
a0952e55f2
Fix prototype for exec_task
...
This was introduced in d259dacf5b
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-11-25 16:24:00 +00:00