cloudinit/system
Alex Crawford 5527f09778 config: fix parsing of file permissions
These reintroduces the braindead '744' syntax for file permissions. Even
though this number isn't octal, it is assumed by convention to be. In
order to pull this off, coerceNodes() was introduced to try to
counteract the type inferrencing that occurs during the yaml
unmarshalling. The config is unmarshalled twice: once into an empty
interface and once into the CloudConfig structure. The two resulting
node structures are combined together. The nodes from the CloudConfig
process replace those from the interface{} when the types of the two
nodes are compatible. For example, with the input `0744`, yaml
interprets that as the integer 484 giving us the nodes '0744'(string)
and 484(int). Because the types string and int are compatible, we opt to
take the string node instead of the integer.
2014-12-30 16:20:21 +01:00
..
env_file_test.go *: add license header to all source files 2014-10-17 15:36:22 -07:00
env_file.go *: add license header to all source files 2014-10-17 15:36:22 -07:00
env_test.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
env.go Create an environment file for flannel 2014-12-29 10:27:22 +00:00
etc_hosts_test.go *: add license header to all source files 2014-10-17 15:36:22 -07:00
etc_hosts.go system: embed config within EtcHosts and Update 2014-10-23 11:44:15 -07:00
etcd_test.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
etcd.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
file_test.go config: fix parsing of file permissions 2014-12-30 16:20:21 +01:00
file.go config: fix parsing of file permissions 2014-12-30 16:20:21 +01:00
flannel_test.go Create an environment file for flannel 2014-12-29 10:27:22 +00:00
flannel.go Create an environment file for flannel 2014-12-29 10:27:22 +00:00
fleet_test.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
fleet.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
locksmith_test.go Enable configuration of locksmithd 2014-12-04 23:53:31 -08:00
locksmith.go Enable configuration of locksmithd 2014-12-04 23:53:31 -08:00
networkd.go network: write network units with user units 2014-12-12 15:08:03 -08:00
oem_test.go *: fix warnings from go vet 2014-10-23 11:46:08 -07:00
oem.go *: add license header to all source files 2014-10-17 15:36:22 -07:00
ssh_key.go *: add license header to all source files 2014-10-17 15:36:22 -07:00
systemd_test.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
systemd.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
unit_test.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
unit.go drop-in: add support for drop-ins 2014-11-26 14:09:35 -08:00
update_test.go config: change valid tag to use regexp 2014-12-30 16:20:21 +01:00
update.go reboot-strategy: remove the 'false' value 2014-12-30 16:20:21 +01:00
user.go *: add license header to all source files 2014-10-17 15:36:22 -07:00