Sven Dowideit
1aa8521cf8
Merge pull request #1678 from SvenDowideit/elide-cmdline
...
Elide cmdline
2017-03-14 18:47:01 +10:00
Sven Dowideit
2de5daffe9
Don't keep retrying if we can't get to the metadata, we're not doing anything to change the result
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-14 18:45:58 +10:00
Sven Dowideit
73980f9c73
save the elided cmdline into an env var
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-14 14:19:43 +10:00
Sven Dowideit
f6ce1f0685
Use the kernel cmdline elide patch to load config into RancherOS that isn't visible in /pro/cmdline
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-14 14:19:43 +10:00
Sven Dowideit
8babf66dc4
Remove some dev debug output
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-14 13:28:17 +10:00
Sven Dowideit
2d92956c82
Revert "WIP New ros cli"
2017-03-14 12:11:24 +10:00
Sven Dowideit
8d941162d8
ros list shows all the active services and any cache available updates
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-13 12:56:54 +00:00
Sven Dowideit
27f11ec6c2
set the permissions for /var/lib/rancher/conf to 0700
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-13 11:44:47 +00:00
Sven Dowideit
78c08c4dd9
ok, lets not remove the un-speced ip's in 0.9.0
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-13 14:08:03 +10:00
Sven Dowideit
d65f9518df
use DHCP for aws datasource
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-13 10:56:28 +10:00
Sven Dowideit
64949bb888
WIP refactor to simplify reading
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-12 21:26:03 +10:00
Sven Dowideit
17b3589782
Add a network test that sets up 2 of 4 ehternet devices, and allows another to use dhcp
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-10 22:28:41 +10:00
Sven Dowideit
b5fdd63a85
fix the ip/cidr, and call updateNetwork
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-08 12:03:58 +00:00
Sven Dowideit
0779e13d46
Refactor the cloud-init metadata to return a netconf.NetworkConfig
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-08 12:03:58 +00:00
Sven Dowideit
5dbb0f2a28
simplistic start
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-08 12:03:58 +00:00
Sven Dowideit
10a4c59385
Make datasource.AvailabilityChanges() able to be dynamic so fail out for configdrive mount and url 404's faster
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-04 08:05:28 +00:00
Sven Dowideit
78051c2814
treat 404 error on datasource as unrecoverable
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-04 08:05:28 +00:00
Sven Dowideit
391082fa50
refactor a little and keep the datasource errors for later
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-04 08:05:28 +00:00
Sven Dowideit
8fa2d80325
use our gce metadata - it adds ssh
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-02 16:25:00 +10:00
Sven Dowideit
be2c4044ce
cloudinit tests pass :)
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-02-28 13:58:34 +10:00
Sven Dowideit
4f177ee605
remove systemd things that so we can build ros
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-02-28 13:58:34 +10:00
Sven Dowideit
e2ed97648a
move coreos-cloudinit into config/cloudinit
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-02-28 13:58:34 +10:00
Tyler Tidman
283c4b7193
Update copyrights, fixes #1605
2017-02-21 20:19:10 -05:00
Sven Dowideit
a4e77692c4
My first pass at fixing the b2d autoformat
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-22 06:43:04 +00:00
Josh Curl
c6232e67aa
Allow question marks in unquoted kernel parameters
2017-01-04 16:34:40 -08:00
Serhiy Berezin
de1bbbea38
Merge https://github.com/rancher/os into HEAD
2016-12-02 01:17:16 +00:00
Serhiy Berezin
3cc41b0a98
ALL top level cloud-config keys as kernel args work now if prefixed with "cc.", while prefixed just with "rancher." works as well for legacy backward compat
2016-12-02 01:16:42 +00:00
Josh Curl
be5d207d5d
Show SSH keys and hostname from metadata in 'ros config export'
2016-11-30 16:41:58 -08:00
Sven Dowideit
4df962d4b6
make ros log to dmesg
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-30 10:51:30 +10:00
Josh Curl
20856a4171
Fix golint error
2016-11-29 14:38:47 -08:00
Josh Curl
a7c34b9855
Fix golint errors
2016-11-28 00:06:00 -08:00
Josh Curl
f6ba07bf8b
Fix validation for list of maps
2016-11-26 23:27:42 -08:00
Josh Curl
47a447cb67
Add container to write_files schema
2016-11-26 23:26:20 -08:00
Josh Curl
1d617f1b92
Remove empty Docker engine arguments
2016-11-21 15:18:44 -08:00
Josh Curl
98f7f9e207
Update schema
2016-11-16 21:02:33 -08:00
Darren Shepherd
4479ff5cdb
Merge pull request #1364 from joshwget/early-cloud-init
...
Early cloud-init
2016-11-16 17:05:03 -07:00
Josh Curl
ac3cd213dc
Update schema
2016-11-16 10:06:13 -08:00
Sven Dowideit
8cc4850fe0
Merge pull request #1379 from joshwget/add-insecure-registry-flag
...
Add --insecure-registry flag to daemon arguments
2016-11-15 10:10:27 +10:00
Josh Curl
4ca24cffc6
Add bootcmd to schema
2016-11-11 14:56:25 -08:00
Sven Dowideit
28075b2a78
Merge pull request #1373 from joshwget/validate-command
...
Add command to validate configuration
2016-11-10 18:34:14 +10:00
Josh Curl
5fe26f3ab5
Add --insecure-registry flag to daemon arguments
2016-11-09 11:36:51 -08:00
Josh Curl
13b34a6668
Early cloud-init
2016-11-09 11:08:30 -08:00
Josh Curl
1f1c56d0ec
Add unit test that covers entire configuration
2016-11-08 11:48:45 -08:00
Josh Curl
ceaec960c4
Update schema
2016-11-08 11:48:05 -08:00
Josh Curl
c1abc67fa8
Support string values for runcmd
2016-11-07 11:36:37 -08:00
Josh Curl
25e5ca5e4c
Add command to validate configuration
2016-11-06 18:23:01 -08:00
Josh Curl
bb4ad618e1
Implement bootcmd
2016-11-03 15:06:20 -07:00
Josh Curl
57018249a6
Change host engine opt type to list
2016-10-30 12:07:55 -07:00
Josh Curl
7dce4d54c1
Support list types for engine opts
2016-10-29 21:22:53 -07:00
Josh Curl
5ecbf19aa8
Merge pull request #1332 from joshwget/move-in-netconf-and-dfs
...
Move in code from netconf and docker-from-scratch
2016-10-19 17:56:30 -07:00
Josh Curl
691f7cb42c
Move in code from netconf and docker-from-scratch
2016-10-19 16:21:35 -07:00
Josh Curl
a7d405991c
Rewrite a few scripts in Go and remove unneeded services
2016-10-17 14:47:44 -07:00
Josh Curl
7adb6ee3a8
Add omitempty to EngineOpts tags
2016-09-29 21:47:31 -07:00
Darren Shepherd
5987d713a4
Merge pull request #1245 from joshwget/parse-colons-without-quotes
...
Colons can be parsed without quotes
2016-09-26 21:41:57 -07:00
Darren Shepherd
e5293ff926
Merge pull request #1239 from joshwget/docker-arguments-map
...
Use a map to configure Docker arguments
2016-09-26 21:36:36 -07:00
Josh Curl
b65e429bb6
Run gofmt and fix vet errors
2016-09-26 21:32:37 -07:00
Josh Curl
065fe4a16e
Use a map to configure Docker arguments
2016-09-25 17:55:19 -07:00
Josh Curl
133c2610d1
Remove rancher.state.formatzero kernel parameter
2016-09-25 11:39:46 -07:00
Josh Curl
c1582f5a49
Colons can be parsed without quotes
2016-09-18 16:35:32 -07:00
Josh Curl
2781eab500
Split up parseCmdline unit test
2016-09-18 16:33:22 -07:00
Josh Curl
4677af8419
Implement runcmd
2016-08-22 13:22:27 -07:00
Josh Curl
11cf2a195b
Show current/enabled/disabled in 'ros engine list'
2016-08-17 16:33:49 -07:00
Josh Curl
80c72d0761
Make it easier to switch between Docker engines
2016-08-15 15:06:26 -07:00
Josh Curl
0a053c62ab
Extend write_files to run in all system services
2016-08-15 11:14:50 -07:00
Josh Curl
c67475cbaa
Rewrite console.sh and docker-init in Go
2016-08-12 11:40:56 -07:00
Josh Curl
6b4222888c
Refactor state
2016-07-27 23:25:08 -07:00
Ivan Mikushin
22887dfb0b
Unescape kernel params
...
so kernel params like rancher.cloud_init.datasources='["url:http://10.0.2.2:8800/cc.yml "]' could be used
2016-07-15 15:03:17 -07:00
Ivan Mikushin
b6edde6052
Do not lose ssh keys from metadata if there are no ssh keys in cloud-config
2016-06-30 14:21:41 -07:00
Josh Curl
b09c09edf4
Fix two instances where customization isn't respected
2016-06-28 14:35:51 -07:00
Josh Curl
921c00c8ea
Add sysctl support in cloud config
2016-06-17 23:05:45 -07:00
Josh Curl
07cc5a430a
Make rancher.debug control bootstrap Docker and turn on log
2016-06-17 09:41:33 -07:00
Josh Curl
f850e151de
Validate value for 'ros config set'
2016-06-16 10:14:52 -07:00
Darren Shepherd
924e4b8aae
/media and /mnt mounted as shared for console
2016-06-15 16:45:05 -07:00
Josh Curl
f24facc06c
Additional mounts can be set in cloud config
2016-06-14 15:25:56 -07:00
Josh Curl
7f7d8765ca
New console label to handle switching between persistent consoles
2016-06-10 10:54:10 -07:00
Josh Curl
9658d3bffd
Replace resize system service with cloud config option
2016-06-07 09:53:41 -07:00
Josh Curl
719d255636
First class consoles
2016-06-06 15:13:15 -07:00
Darren Shepherd
8ab32c820f
Docker 1.11.1
2016-06-03 11:38:25 -07:00
Josh Curl
adb5635186
Support registry credentials in cloud config
2016-06-02 19:00:42 -07:00
Darren Shepherd
4ab3162ed8
Merge pull request #973 from joshwget/remove-unneeded-code
...
Remove unneeded service processing code
2016-06-02 19:28:17 -06:00
Darren Shepherd
71c8f40ffe
Merge pull request #972 from joshwget/boot-with-invalid-config
...
Fix boot issues due to invalid configs
2016-06-02 19:27:23 -06:00
Darren Shepherd
5659173628
Merge pull request #962 from joshwget/atomic-writes
...
Atomic writes
2016-06-02 19:26:44 -06:00
Josh Curl
4f48569cb2
Atomic writes
2016-06-02 14:32:26 -07:00
Josh Curl
55d629b980
Remove unneeded service processing code
2016-06-02 09:01:00 -07:00
Josh Curl
08f40ad3e7
Fix boot issues due to invalid configs
2016-06-01 18:41:55 -07:00
Josh Curl
e51c5409aa
Move default hostname and network under common key
2016-05-31 22:27:04 -07:00
Josh Curl
a59ec33787
Fix --private flag for 'ros config export'
2016-05-31 18:10:56 -07:00
Josh Curl
95d8ebe146
Simplify configuration
2016-05-31 14:34:04 -07:00
Josh Curl
42e48476e7
Sync with libcompose
2016-05-23 17:21:28 -07:00
Darren Shepherd
cd84bd8cf6
Merge pull request #896 from joshwget/ros-config-set-default-value
...
Fix setting default values with 'ros config set'
2016-05-02 13:24:54 -07:00
Darren Shepherd
c94f2451d4
Merge pull request #897 from datawolf/fix-set-rancher.debug-error
...
Remove `-D` when we set rancher.debug=false
2016-05-02 13:24:32 -07:00
Wang Long
fa98165862
Remove -D
when we set rancher.debug=false
...
when we set rancher.debug to true, the current code also set `-D` flag
to system-docker and user-docker daemon.
and then we change rancher.debug to false, the `-D` flag is also exist
by using command `sudo ros config get rancher.docker`.
this patch fix it.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
2016-04-29 09:55:42 +08:00
Darren Shepherd
f15967a7a3
Merge pull request #890 from joshwget/add-upgrade-console-flag
...
Add upgrade flag to upgrade persistent console
2016-04-25 10:50:37 -07:00
Josh Curl
6ab32ae19c
Fix setting default values with 'ros config set'
2016-04-22 16:11:54 -07:00
Josh Curl
ee73337f49
Add upgrade flag to upgrade persistent console
2016-04-18 17:00:18 -07:00
Josh Curl
8862878337
Remove DHCP override flag
2016-04-15 10:38:31 -07:00
Darren Shepherd
8b4e6cc502
Merge pull request #881 from joshwget/fix-dhcp-hostname
...
Fix DHCP hostname being overwritten
2016-04-14 21:59:38 -07:00
Josh Curl
a0ae6222c9
Fix DHCP hostname being overwritten
2016-04-14 21:58:07 -07:00
Josh Curl
53acef17cd
Use yaml.Unmarshal to handle config arguments
2016-04-14 17:04:00 -07:00
Josh Curl
b52663ee5f
Fix config/config_test.go
2016-04-13 10:26:41 -07:00