19 Commits

Author SHA1 Message Date
Brett T. Warden d0f1601944 Adopt an instance service for providers
Instead of creating a unique service file for each provider, just use a
single instance service. We'll change the symlinks in packaging.
2022-10-21 11:02:18 -07:00
Auke Kok 919dcdd6b7 Remove forced dependency ordering on systemd-networkd.
These lines forced systemd-networkd to wait until `ucd` had
completed.

In turn, `ucd` requires the network to be active in order
to install packages. It waits for the network to become
active, even.

Surely, this is untenable. Ucd will have to accept any
network state and may not prevent it from starting as
early as possible, which would be counter to any fast
boot initiative.
2019-11-13 12:18:32 -08:00
jwang 4706d35c2c Add aliyun cloud support
Enable ucd to work in aliyun cloud by add a config templete
for aliyun

Signed-off-by: jwang <jing.j.wang@intel.com>
2019-10-15 11:27:02 -07:00
Auke Kok 31e30b5b29 Start of unification of aws/oci/tencent data fetcher.
Instead of keep duplicating existing code, we can make this program
a little bit more versatile and cover all 3 use cases and add some
extensibility for further additions.

A static table describes what needs fetching and from where. The
rest is logically the same and so the delta isn't so bad.

We add tencent cloud support on top of this.
2019-08-06 15:29:12 -07:00
William Douglas bfadb7b09f Add Oracle Cloud support
Enable ucd to work within the Oracle Cloud environment. In this case
it involves creating the opc user and provisioning the ssh public
key.
2018-05-14 15:05:49 -07:00
Auke Kok 5f80692011 ucd AWS helper.
The ucd-aws program fetches the user-data for an AMI instance
over http from 169.254.169.254, and passes it back to ucd.

The service is not supposed to be enabled unless you are running
on AWS, as it is highly specific to that cloud.
2017-04-28 14:48:10 -07:00
Auke Kok ef081cb2e9 Project rename: clr-cloud-init is now micro-config-drive (ucd). 2016-07-11 10:15:28 -07:00
Julio Montes b4fec921d3 remove network code (#21)
* remove no-network option

Signed-off-by: Julio Montes <julio.montes@intel.com>

* update documentation

Signed-off-by: Julio Montes <julio.montes@intel.com>

* update service files

Signed-off-by: Julio Montes <julio.montes@intel.com>
2016-06-22 15:11:59 -07:00
Julio Montes b24379642e remove PrivateTmp from systemd unit files
this patch is to avoid bugs/issues while userdata
is being processed
2016-04-21 13:54:46 -05:00
Julio Montes a7c34ff704 Fix default user not found when no cloud-config is used
add first-boot-setup to cloud-init service
2016-04-15 11:41:39 -05:00
Julio Montes 1c97e18f07 Split cloud-init service
cloud-init-pre-network:
runs before network service.
this service gets metadata from local datasources
in order to configure network stuff before network service
and configures the instance on its first booot

cloud-init:
runs after network service and will get userdata/metadata
from datasources(local/network). This service fixes disk
and filesystem

add first-boot-setup and no-network options
update documentation
2016-04-13 15:53:25 -05:00
Julio Montes f666061e94 Use private tmp directory 2016-04-06 14:53:26 -05: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 e5210903eb replace --no-growpart with --fix-disk 2016-01-28 12:37:02 -06:00
Julio Montes aec6333422 update systemd services 2016-01-28 11:22:47 -06:00
Julio Montes 3837262be2 update firstboot service 2015-12-09 12:16:57 -06:00
Julio Montes d7e0add7b1 update firstboot service to process userdata and metadata at first boot 2015-12-07 16:13:55 -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
Auke Kok c7d1d9dda7 Initial commit 2015-11-05 18:38:10 +00:00