Dan Bungert
21058464fd
make_cloudconfig - start moving cloud config generation to models ( #975 )
...
Add make_cloudconfig as a function that models should offer that allows
for generation of the cloud-config snippet.
Move snaplist and locale to this mechanism.
Add a test for snaplist output.
2021-06-08 16:54:29 -06:00
Michael Hudson-Doyle
3b60666495
Merge pull request #925 from mwhudson/lp-1885644-again
...
add all documented fields to filesystem model classes
2021-04-12 11:24:23 +12:00
Michael Hudson-Doyle
5dbd872919
add test of mount options being propagated
2021-04-06 09:16:55 +12:00
Dan Bungert
a0e2e244bd
add setting policy for post-install updates via autoinstall ( #920 )
...
* Add element updates (non-UI)
This can be controlled with autoinstall
updates: security or all
Also an API for controlling this:
curl --silent --unix-socket .subiquity/socket a/updates ->
"security"
curl -d '"all"' --unix-socket .subiquity/socket a/updates
* Automated tests - log grep for default/none/all states
* Enforce possible values on Updates controller
Route all the various get/set thru 2 common functions.
Validate incoming data.
2021-03-31 13:57:53 -06:00
Michael Hudson-Doyle
4cdfe469e7
run error commands on failure
2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle
b8c9ca2484
add mirror to examples/autoinstall.yaml
2020-06-12 15:31:15 +12:00
Michael Hudson-Doyle
3c98f68fcf
use a real locale in examples/autoinstall.yaml
2020-05-21 10:49:42 +12:00
Michael Hudson-Doyle
ba106bbbed
tests
2020-05-05 23:05:59 +12:00
Michael Hudson-Doyle
86376a4b78
be more intelligent about waiting for nics to get dhcp address when no autoinstall config is provided
2020-05-04 19:39:08 +12:00
Michael Hudson-Doyle
4891d76aca
actually write the netplan from the autoinstall config to the target system
...
I got lost in a forest of similarly named methods :(
2020-05-04 19:37:43 +12:00
Michael Hudson-Doyle
81b459cb99
make spare_devices optional in autoinstall config
2020-05-04 14:18:42 +12:00
Michael Hudson-Doyle
8a84e470c5
make sure the size of a partition gets set to int
2020-05-04 14:16:03 +12:00
Michael Hudson-Doyle
abc64fb5f2
do not force double "network" keys in autoinstall config
...
I obviously didn't test this very hard before release :/
2020-04-29 19:46:17 +12:00
Michael Hudson-Doyle
1ba62ec1cc
make sure late-commands actually run :(
2020-04-22 17:11:25 +12:00
Michael Hudson-Doyle
670c9c838a
add test for locale: in autoinstall file
2020-04-20 20:34:08 +12:00
Michael Hudson-Doyle
18e4d977e9
fix autoinstall refresh code to (a) match docs (b) work
2020-04-19 22:48:27 +12:00
Michael Hudson-Doyle
c1c33dee03
add a simple integration test for autoinstall
2020-04-02 10:22:08 +13:00
Michael Hudson-Doyle
99218fbeb4
support early and late commands
2020-02-04 14:03:59 +13:00
Michael Hudson-Doyle
9db0c18fdd
add some example autoinstall files
2020-02-04 13:49:09 +13:00