diff options
| author | Scott Moser <smoser@ubuntu.com> | 2016-06-03 15:31:38 -0400 | 
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2016-06-03 15:31:38 -0400 | 
| commit | e513fc39555242f0be3049fb36eb04e708e70e66 (patch) | |
| tree | 56b0059e822d0c0d2e0fc09ec24f664f75fb4ba4 /cloudinit/templater.py | |
| parent | 710590d3a32e6b77222b288e5b751e7296abb2b4 (diff) | |
| parent | 80931f7008971c9a7705c054fabc29fec7a133e2 (diff) | |
| download | vyos-cloud-init-e513fc39555242f0be3049fb36eb04e708e70e66.tar.gz vyos-cloud-init-e513fc39555242f0be3049fb36eb04e708e70e66.zip | |
Apt sources configuration improvements
- keyid-only (no source statement)
- key only (no source statement)
- custom source.list template
- support long gpg key fingerprints with spaces
- fix issue with key's that were already in the local gpg keyring
- allowing a new format to specify apt_sources in a dictionary instead of a
  list to allow merging of configurations
LP: #1574113
Diffstat (limited to 'cloudinit/templater.py')
| -rw-r--r-- | cloudinit/templater.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/cloudinit/templater.py b/cloudinit/templater.py index a9231482..8a6ad417 100644 --- a/cloudinit/templater.py +++ b/cloudinit/templater.py @@ -142,6 +142,11 @@ def render_to_file(fn, outfn, params, mode=0o644):      util.write_file(outfn, contents, mode=mode) +def render_string_to_file(content, outfn, params, mode=0o644): +    contents = render_string(content, params) +    util.write_file(outfn, contents, mode=mode) + +  def render_string(content, params):      if not params:          params = {} | 
