summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_snappy.py
AgeCommit message (Collapse)Author
2016-10-20Add support for snap create-user on Ubuntu Core images.Ryan Harper
Ubuntu Core images use the `snap create-user` to add users to an Ubuntu Core system. Add support for creating snap users by adding a key to the users dictionary. users: - name: bob snapuser: bob@bobcom.io Or via the 'snappy' dictionary: snappy: email: bob@bobcom.io Users may also create a snap user without contacting the SSO by providing a 'system-user' assertion by importing them into snapd. Additionally, Ubuntu Core systems have a read-only /etc/passwd such that the normal useradd/groupadd commands do not function without an additional flag, '--extrausers', which redirects the pwd to /var/lib/extrausers. Move the system_is_snappy() check from cc_snappy module to util for re-use and then update the Distro class to append '--extrausers' if the system is Ubuntu Core.
2016-09-30Improve module documentation and doc cleanup.Wesley Wiedenmeier
This adds lots of config module documentation in a standard format. It will greatly improve the content at readthedocs. Additionally: * Add a 'doc' env to tox.ini * Changed default highlight language for sphinx conf from python to yaml most examples in documentation are yaml configs * Updated datasource examples to highlight sh code properly
2016-08-10Add distro tags on config modules that should have itJoshua Harlow
Some of these really won't work to well on non-supporting distros so to avoid further user pain tag this with the supported distros where they should work.
2016-05-12Fix up a ton of flake8 issuesJoshua Harlow
2015-09-15Change Snappy SSH enabled default from false to 'auto' (LP: #1494816)Ben Howard
2015-09-11cc_snappy: update doc string, change default to 'auto'Scott Moser
2015-09-11Refinements on SSH enablementBen Howard
2015-09-11Ubuntu Snappy: conditionally enable SSH on SnappyBen Howard
When a user provides authentication tokens, enable SSH unless SSH has been explicitly disabled (LP: #1494816).
2015-05-01fix 'Make pyflakes'Scott Moser
2015-04-16pep8 fixesScott Moser
2015-03-31adjust cc_snappy for snappy install package with config.Scott Moser
It was believed that to install a package with config the command was: snappy install --config=config-file <package> Instead, what was implemented in snappy was: snappy install <package> [<config-file>] This modifies cloud-init to invoke the latter and changes the tests appropriately. LP: #1438836
2015-03-27allow-unauthenticated when done from local fileScott Moser
2015-03-27do not use setScott Moser
2015-03-27be more user-friendly when looking for matching .configScott Moser
On fspath installs, look for .config files harder. Given a file named: pkg.namespace_0.version_arch.snap We'll search for config files named: pkg.namespace_0.version_arch.config pkg.namespace.config pkg.config
2015-03-27fix read_installScott Moser
2015-03-27address namespacingScott Moser
2015-03-27set snappy command earlierScott Moser
2015-03-27change 'configs' to 'config', and namespace input to 'snappy config'Scott Moser
the input to 'snappy config <packagename>' is expected to have config: <packagename>: content: So here we pad that input correctly. Note, that a .config file on disk is not modified. Also, we change 'configs' to just be 'config', to be possibly compatible with the a future 'snappy config /' that dumped: config: pkg1: data1 pkg2: data2
2015-03-26fix scope so that SNAPPY_CMD is affected by set_snappy_commandScott Moser
2015-03-26mention ubuntu-coreScott Moser
2015-03-26improve doc, change 'click_packages' path to be 'snaps'Scott Moser
2015-03-26rad_pkg_data: return data, fix undefined variableScott Moser
2015-03-26encode needed for yaml_dumpsScott Moser
2015-03-26prefer snappy-go to snappyScott Moser
2015-03-26add tests for data typesScott Moser
2015-03-26pep8Scott Moser
2015-03-26pep8, and some more testsScott Moser
2015-03-26start of snap_op testsScott Moser
2015-03-26commit work in progress. tests pass.Scott Moser
2015-03-05fixes from testingScott Moser
2015-03-05do not raise exception on non-existant channel.ini fileScott Moser
2015-03-05fixes bug: https://launchpad.net/bugs/1428495Scott Moser
snappy: disable by default this does 2 things actually a.) disables snappy by default, and adds checks to filesystem to enable it b.) removes the 'render2env' that was mostly spike code.
2015-03-04add snappy moduleScott Moser