Julio Montes
35c25ae9cd
update version from 16 to 17
v17
2016-02-11 15:13:59 -06:00
Julio Montes
16c3d6070f
fix to save instance id when metadata service is used in openstack datasource
...
add some logs
2016-02-11 15:08:18 -06:00
Julio Montes
5ea1e46dce
add logs to know instance id status
...
get_boot_info uses cache variables at beginning
2016-02-11 15:03:27 -06:00
Julio Montes
b741fc1028
Run main loop after join threads
...
this change is to avoid sync problems
between async_task_exec and async_task_finish
2016-02-11 13:35:36 -06:00
Julio Montes
79878c5455
add log to see when main loop is running
2016-02-10 14:38:27 -06:00
Julio Montes
37709bad93
fix memory leaks
...
replace getgrnam with getgrnam_r and getpwnam with getpwnam_r
because they are thread safe functions
2016-02-09 14:50:14 -06:00
Julio Montes
f73c5e432b
fix security hole escaping special characters at async_task_exec
2016-02-08 15:25:26 -06:00
Julio Montes
d26a2a3335
add single quotes to arguments in groups ccmodule
2016-02-05 15:56:43 -06:00
Julio Montes
423b30b37a
remove function to scape characters in users ccmodule
2016-02-05 15:56:08 -06:00
Julio Montes
3aaaadf9dc
fix security hole escaping special characters
...
fix possible command injection
2016-02-05 15:54:25 -06:00
Julio Montes
f569128eb3
update version from 15 to 16
v16
2016-02-04 14:58:17 -06:00
Julio Montes
248f8013d5
openstack datasource sets hostname only at first boot
2016-02-04 14:28:43 -06:00
Julio Montes
90b92c4119
improve get_boot_info to cache boot info
2016-02-04 11:55:44 -06:00
Julio Montes
71210af2a4
finish async task before datasource
...
this change is to avoid blob data in threads
2016-02-04 11:31:22 -06:00
Julio Montes
204c8e6f87
openstack datasource uses async_task functions
2016-02-04 11:31:11 -06:00
Julio Montes
88187ec7e7
remove exec_task_async function
2016-02-03 16:17:17 -06:00
Julio Montes
a56e676b68
use async_task functions
...
add async_task to unit tests
2016-02-03 16:17:05 -06:00
Julio Montes
c88e4437ea
implement async_task functions
...
implement async_task functions to run threads and
execute async commands
2016-02-03 16:04:36 -06:00
Julio Montes
c10af2dda7
fix injection of commands in useradd command line
...
add quotes and scape special characters in useradd command line
in order to avoid injection of commands (similar to SQL injection)
2016-02-02 15:42:28 -06:00
Julio Montes
c25f5fb0b7
rename is_firstboot to get_boot_info
...
get_boot_info is able to know if current image is a snapshot
on its first boot
2016-02-02 10:25:01 -06:00
Julio Montes
b4b16f21c9
rename disk_for_path to disk_by_path
2016-02-02 10:25:01 -06:00
Julio Montes
5376629446
rename disk_resize_grow to disk_fix
2016-02-02 10:25:01 -06:00
Julio Montes
1ebde0fc2a
Merge pull request #7 from markdryan/master
...
Fix the user-data passwd field
2016-02-02 10:00:49 -06:00
Mark Ryan
c7abe4d6a0
Fix the user-data passwd field
...
The contents of the passwd field need to be quoted before being
passed to useradd. Password hashes often contain $ symbols and
without the quotes these symbols are interpeted as shell variables.
The result being that the hash you specify in your yaml bears
little resemblance to the hash that ends up in /etc/shadow and
your user cannot log in.
Signed-off-by: Mark Ryan <mark.d.ryan@intel.com >
2016-02-02 14:59:14 +01:00
Julio Montes
ff36ea0d5a
fix --user-data-once option
2016-01-29 11:42:51 -06:00
Julio Montes
5e04ad5f65
update version from 14 to 15
v15
2016-01-28 16:58:41 -06:00
Julio Montes
a8197405b0
remove cloud-init-firstboot service
...
cloud-init-firstboot service is not more needed because
cloud-init service can use --user-data-once option to
process only on first boot user data
2016-01-28 16:56:13 -06:00
Julio Montes
7c04bc1bf2
add --user-data-once option to process userdata only on first boot
...
update docs
2016-01-28 16:37:12 -06:00
Julio Montes
f9987273cb
fix unable to use sudo after reboot
...
format sudo directives
2016-01-28 15:42:09 -06:00
Julio Montes
d2edfd09e6
update version from 13 to 14
v14
2016-01-28 14:05:19 -06:00
Julio Montes
e5210903eb
replace --no-growpart with --fix-disk
2016-01-28 12:37:02 -06:00
Julio Montes
d7430bf527
fix to write ssh keys only once
2016-01-28 12:27:25 -06:00
Julio Montes
aec6333422
update systemd services
2016-01-28 11:22:47 -06:00
Julio Montes
a382aa3a07
update documentation
2016-01-28 11:22:21 -06:00
Julio Montes
a7408871bc
re-implement datasource handlers
...
we can not use systemd to detect first boot because
users can create snapshots of running vm's and boot
these snapshots, therefore metadata must be used to
identify vm's first boot not systemd :(
remove -b, --first-boot option because now clr-clodu-init
is able to identify vm's first boot using instance id
implement uuid metadata handler
2016-01-28 11:20:07 -06:00
Julio Montes
dce3337f39
add functions to save instance id and detect vm's first boot
...
save_instance_id must be used by datasources to save instance id
is_firstboot uses instance id to detect vm's first boot
2016-01-28 11:10:52 -06:00
Julio Montes
ae49597b4a
add --with-datadir option to configure script
2016-01-28 11:09:17 -06:00
Julio Montes
f8d44269f0
modify mount_filesystem's parameters
...
now last parameter is a gchar** and it is used to store
a path to loop device if it was created, therefore caller functions
must free this argument
2016-01-26 14:19:42 -06:00
Julio Montes
846b68212b
implement function to ping hosts
...
fix curl logs
2016-01-26 11:56:54 -06:00
Julio Montes
1bea17ba0a
rename struct of datasource handlers
2016-01-22 16:05:05 -06:00
Julio Montes
c6ff7ef917
fix unit tests
2016-01-22 15:29:21 -06:00
Julio Montes
12124ebce1
openstack datasource uses new mount and umount functions
2016-01-22 14:56:56 -06:00
Julio Montes
6db20ed5de
implement mount and umount filesystem functions
...
these two functions are able to create and destroy
loop devices if is needed
2016-01-22 14:53:30 -06:00
Julio Montes
6831102038
simplify function to free gnode data
2016-01-21 11:31:56 -06:00
Julio Montes
6aab05a776
fix memory leak async_checkdisk
2016-01-21 10:44:30 -06:00
Julio Montes
a83b814ddc
fix memory leak cloud_config
2016-01-21 09:42:53 -06:00
Julio Montes
6c09769768
fix memory leak users ccmodule
2016-01-20 16:01:27 -06:00
Julio Montes
9296539c0e
remove glib header from handlers
2016-01-20 14:52:52 -06:00
Julio Montes
565d7a83d3
rename ambiguous function
...
openstack_process_metadata -> openstack_process_metadata_file
2016-01-20 14:49:04 -06:00
Julio Montes
0cecc1763b
fix crash processing userdata file
2016-01-18 15:32:43 -06:00