Alex Crawford
ea1e4c38fa
Revert "Merge pull request #234 from crawford/validate"
...
This reverts commit cdfc94f4e9
, reversing
changes made to 2051cd3e1c
.
Conflicts:
config/config.go
config/config_test.go
config/etc_hosts.go
config/etcd.go
config/file.go
config/fleet.go
config/oem.go
config/unit.go
config/update.go
config/user.go
initialize/config.go
initialize/config_test.go
initialize/env.go
initialize/manage_etc_hosts.go
initialize/workspace.go
system/env.go
system/etc_hosts_test.go
system/etcd.go
system/etcd_test.go
system/fleet.go
system/fleet_test.go
system/oem.go
system/oem_test.go
system/systemd.go
system/update.go
system/update_test.go
test
2014-11-03 14:43:29 -08:00
Alex Crawford
8be307de49
*: fix warnings from go vet
2014-10-23 11:46:08 -07:00
Jonathan Boulle
6c1ba590aa
*: add license header to all source files
2014-10-17 15:36:22 -07:00
Jonathan Boulle
e2c24c4cef
init: simplify CloudConfigUnit interface
2014-10-06 15:14:29 -07:00
Alex Crawford
18e2f98414
cloudconfig: refactor config
...
- Move CloudConfig into config package
- Add YAML tags to CloudConfig
2014-09-23 17:59:32 -07:00
Alex Crawford
4b472795c4
user: move User into config package
...
- Add YAML tags for the fields
2014-09-23 17:59:19 -07:00
Alex Crawford
85b8d804c8
file: refactor config
...
- Seperate the config from Permissions()
- Add YAML tags for the fields
2014-09-23 17:59:16 -07:00
Alex Crawford
1fbbaaec19
unit: refactor config
...
- Seperate the config from Destination()
- Add YAML tags for the fields
2014-09-23 17:58:32 -07:00
Alex Crawford
667dbd8fb7
update: refactor config
...
- Explicitly specify all of the valid options for Update
- Seperate the config from File() and Units()
- Add YAML tags for the fields
2014-09-23 17:57:43 -07:00
Alex Crawford
6730cb7227
oem: refactor the config
...
- Seperate the config from File()
- Add YAML tags for the fields
2014-09-23 16:08:23 -07:00
Alex Crawford
9454522033
fleet: refactor config
...
- Explicitly specify all of the valid options for fleet
- Seperate the config from Units()
- Add YAML tags for the fields
2014-09-23 16:07:53 -07:00
Alex Crawford
c255739a93
etcd: refactor config
...
- Explicitly specify all of the valid options for etcd
- Remove the default name generation (ETCD_NAME is set by its unit file now)
- Seperate the etcd config from Units()
- Remove support for DISCOVERY_URL
- Add YAML tags for the fields
2014-09-23 16:07:13 -07:00
Alex Crawford
78aa2c56ec
yaml: replace goyaml with yaml
2014-09-08 13:25:27 -07:00
Alex Crawford
9fcf338bf3
units: Ensure that the units are executed in order
2014-09-02 17:15:32 -07:00
Alex Crawford
3abd6b2225
digitalocean: Add DigitalOcean metadata service
...
Move debian-related processing into its own file.
2014-09-01 16:53:15 -07:00
Alex Crawford
604ef7ecb4
datasource: Add FetchNetworkConfig
...
FetchNetworkConfig is currently only used by ConfigDrive to read the
network config file from the disk.
2014-08-26 13:04:43 -07:00
Alex Crawford
f0b9eaf2fe
configdrive: Remove broken support for ec2 metadata
...
As it turns out, certain metadata is only present in the ec2 flavor
of metadata (e.g. public_ipv4) and other data is only present in
the openstack flavor (e.g. network_config). For now, just read the
openstack metadata.
2014-08-15 10:35:21 -07:00
Alex Crawford
b093094292
config: Verify that type assertions are valid
2014-07-22 11:39:20 -07:00
Jonathan Boulle
be51f4eba0
chore(*): split out unit processing from config.Apply
2014-07-11 10:44:19 -07:00
Michael Marineau
983501e43b
environment: add support for updating /etc/environment with IP values
...
To maintain the behavior of the coreos-setup-environment that has
started to move into cloudinit we need to write out /etc/environment
with the public and private addresses, if known. The file is updated so
that other contents are not replaced. This behavior is disabled entirely
if /etc/environment was written by a write_files entry.
2014-07-11 10:34:44 -07:00
Alex Crawford
e6cf83a2e5
refactor(netconf): Move netconf processing and handle metadata
2014-06-18 12:43:41 -07:00
Alex Crawford
840c208b60
feat(metadata): Distinguish between userdata and metadata for datasources
2014-06-18 12:34:31 -07:00
Jonathan Boulle
a6aa9f82b8
fix(systemd): unmask runtime units when mask=False
2014-06-06 10:55:42 -07:00
Jonathan Boulle
0ddc08d55a
fix(system): write all files atomically
2014-06-06 10:36:36 -07:00
Jonathan Boulle
dd861b9f88
fix(initialize): ensure update-engine is restarted after group/server
...
changes
2014-06-05 16:12:40 -07:00
Jonathan Boulle
b04509ae54
fix(systemd): EnableUnitFile unit name rather than absolute destination
2014-05-26 15:16:24 -07:00
Jonathan Boulle
98f5ead730
fix(*): catch more unknown keys in user and file sections
2014-05-15 18:53:17 -07:00
Jonathan Boulle
81fe0dc9e0
fix(initialize): also check for unknown coreos keys
2014-05-15 18:53:17 -07:00
Jonathan Boulle
e852be65f7
feat(*): warn on encountering unrecognized keys in cloud-config
2014-05-15 18:53:17 -07:00
Jonathan Boulle
919298e545
feat(fleet): add basic fleet configuration to cloud-config
2014-05-14 12:28:20 -07:00
Jonathan Boulle
31cfad91e3
refactor(*): rework cloudconfig for better extensibility and consistency
...
This change creates a few simple interfaces for coreos-specific
configuration options and moves things to them wherever possible; so if
an option needs to write a file, or create a unit, it is acted on
exactly the same way as every other file/unit that needs to be written
during the cloud configuration process.
2014-05-14 11:34:07 -07:00
Brandon Philips
9f38792d43
fix(initialize): use REBOOT_STRATEGY in update.conf
...
Change from STRATEGY to REBOOT_STRATEGY and update the function names to
reflect that this is a config now.
2014-05-06 20:57:29 -07:00
Alex Polvi
7e4fa423e4
feat(initialize): add locksmith configuration
...
configure locksmith strategy based on the cloud config.
2014-05-06 20:57:28 -07:00
Michael Marineau
7cacb2e127
Revert "fix(units): Drop automatic daemon-reload"
...
daemon-reload should be fixed now and the latest CoreOS with locksmith
is causing the etcd unit to get lazy-loaded before all the cloudinit
processes have finished configuring etcd via dropin files. In short,
the luck we were relying on to get by without daemon-reload has
officially run out. Cross your fingers!
This reverts commit 580460ff3f
.
2014-05-05 13:16:07 -07:00
Brian Waldon
61bb63b6e6
feat(unit): Allow units to be enabled even if contents not provided
2014-04-15 09:00:53 -07:00
Brian Waldon
476761cf62
refactor(unit): Separate UnitDestination from PlaceUnit
2014-04-15 09:00:53 -07:00
Brian Waldon
5981e12ac0
feat(unit): Allow user to control enabling units
...
Fix #69 - A user may provide an `enable` attribute of a unit in their
cloud config document. If true, coreos-cloudinit will instruct systemd
to enable the associated unit. If false, the unit will not be enabled.
Fix #71 - The default enable behavior has been changed from on to off.
2014-04-15 09:00:52 -07:00
Gabriel Monroy
4d02e1da8e
feat(etc-hosts) add support for manage_etc_hosts: localhost
...
This feature is based on https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config.txt#L447:L482
2014-04-01 16:02:12 -06:00
Brian Waldon
f3ba47ac89
Merge pull request #48 from calavera/key_import_url
...
feat(ssh-import): Add ssh-import-url user attribute.
2014-03-27 20:16:10 -07:00
David Calavera
7d814396b7
feat(ssh-import): Add ssh-import-url user attribute.
2014-03-28 09:39:47 +08:00
Brian Waldon
580460ff3f
fix(units): Drop automatic daemon-reload
2014-03-27 17:30:05 -07:00
Brian Waldon
477ae29135
fix(systemd): Fail if daemon-reload returns error
2014-03-25 18:50:48 -07:00
Brian Waldon
b778fe6f41
fix(unit): Default unit command to NOP
2014-03-24 14:12:59 -07:00
Brian Waldon
3d01211937
feat(coreos.oem): Write coreos.oem fields to /etc/oem-release
2014-03-24 13:42:35 -07:00
Brian Waldon
ddd035aaa7
feat($ip): Substitute $[public|private]_ipv4 in whole user-data
2014-03-21 11:01:16 -07:00
Brian Waldon
88a6e77449
feat(unit.command): Add command field to units
2014-03-19 15:56:29 -07:00
Brian Waldon
09c473a6cb
fix(fleet): Drop coreos.fleet from cloud-config
2014-03-19 14:43:25 -07:00
Brian Waldon
6f5acf53cb
feat(github): add coreos-ssh-import-github user attribute
2014-03-19 08:54:45 -07:00
Brian Waldon
d2dabee0c6
refactor(*): Break apart packages
2014-03-18 09:14:11 -07:00