Jason D. Kelleher
380848796c
incorporated change request from javierbertoli for backwards compatibility
преди 5 години
Javier Bértoli
0ff48e1021
fix(map.jinja+tests): add correct keyring for the OS
* Use the correct keyring for the OS (a refactor of the changes suggested in #41 )
преди 5 години
Jason D. Kelleher
373c7ef35a
added Ubuntu entries to map.jinja
updated repositories entries for sane naming across Debian and Ubuntu entries
updated repo entries for security as syntax differs between Debian and Ubuntu
added repo entries for -updates (previously known as volatile)
updated map to use explicitly use grain os instead of implicitly use os_family
removed distribution_updates variable - syntax was Debian specific and invailid for Ubuntu
tested against Debian/stretch and Ubuntu/xenial
преди 5 години
Simon Schneider
a201be062e
also pass check when opt_data is a number
преди 5 години
Jason D. Kelleher
b227ec7cf2
added -y flag to apt-get calls
преди 5 години
Adrien "ze" Urban
de05ac6f1c
apt_conf: remove_* consistent with other similar options
remove_* was recently changed to always place empty file, but just set
perms if not present, without replace.
Do the same with that option.
преди 6 години
Adrien "ze" Urban
5c6c531e7e
apt_conf_d: missing it apt stuffs
преди 6 години
devster31
7e5d1d1a8f
Meaningful file names and variables
преди 8 години
devster31
5cbec8ef6b
Remove apt.conf if requested
преди 8 години
devster31
9850446c2c
Add initial support for apt conf management
- Add template file
- Add pillar example
преди 8 години
Adrien "ze" Urban
c2801cc47a
fix warning on file.managed without changes
[WARNING ] State for file: /etc/apt/preferences - Neither 'source' nor
'contents' nor 'contents_pillar' nor 'contents_grains' was defined, yet
'replace' was set to 'True'. As there is no source to replace the file
with, 'replace' has been set to 'False' to avoid reading the file
unnecessarily.
Now, if file.managed, but when content is not changed (no source,
contents, ...), avoid the warning.
преди 6 години
Niels Abspoel
144d3bb2f1
fix iteritems python3
преди 6 години
Sylvain COUTANT
1c559ef1fa
Move keyring choice to pillar
преди 6 години
Arthur Lutz
8ec9a4a387
#32 s/httpredir/deb/
преди 7 години
Arthur Lutz
d8688e4878
[apt/repositories] unneeded whitespace
преди 7 години
Arthur Lutz
5868f22c47
[apt/repositories] more flexible options in pillars
contributed initialy by @javierbertoli <javier@netmanagers.com.ar>
fixes #30
преди 7 години
Arthur Lutz
c03acb8748
[apt/repositories] make opts optionnal
преди 7 години
Arthur Lutz
cf426433a4
[apt/repositories] add opts for repo name
Fixes #30
преди 7 години
Adam Bolte
7324c2c2c8
Permit an absent preferences pillar data key
преди 7 години
carpenti
8d194343b8
add missing ';' in unattended configuration
преди 7 години
carpenti
1fd1ab184c
adding support for Origins-Pattern in unattended upgrade
преди 7 години
Adam Bolte
bbfa6f5a80
Pretty up the task name output
преди 8 години
Adam Bolte
f09143a79a
Keep sources.list even if remove_sources_list set
Deleting the file causes "could not open file '/etc/apt/sources.list'"
warnings. Better to keep it around but just remove its contents.
преди 8 години
Adam Bolte
de55b167b4
Add support for Explanation lines in preferences.
преди 8 години
Adam Bolte
023f7c55e3
Remove trailing whitespace.
преди 8 години
Niels Abspoel
3af8993dfb
fix pillar lookup and whitespacing
преди 8 години
Niels Abspoel
5570415469
add listchanges config and fixed typo in unattended.sls
преди 8 години
John Kristensen
02bf3f2d1b
Ensure sources.list exists but is empty ( #19 )
Salt uses the aptsources system library to get a list of repositories on
the host. Unfortunately if the /etc/apt/sources.list file is missing,
aptsources.sourceslist.SourcesList() (which is called by salt) logs a
warning, which is then displayed to the user running salt.
To avoid this warning when using 'remove_sources_list: true' in pillar
we can keep the /etc/apt/sources.list file, but just ensure it is empty.
This achieves the same thing, but does not log the warning or display it
to the user.
преди 8 години
Javier Bértoli
6f7022fc56
Add apt's preferences mgmt
Ignore .kitchen dir
Add defaults for preferences mgmt
Add some pillar examples for preferences mgmt
Add tests for preferences
Add entries in the README file
Missing map.jinja entry
преди 8 години
Javier Bértoli
4a26e31ed5
Fix resource name to avoid conflicting ID
преди 8 години
Javier Bértoli
ca11055b68
Lint
преди 8 години
Javier Bértoli
324248e457
Add repo's key management, documentation
преди 8 години
Javier Bértoli
54583ed5c0
Add state file to manage repositories
преди 8 години
Javier Bértoli
7c7cd9f9a8
Change run to wait, to run only on repositories changes
преди 8 години
Ben McClure
09b476427a
Fixed pillar.get calls
преди 9 години
Ben McClure
92780c942f
Made Debian the default lookup
преди 9 години
Ben McClure
4142bcf87b
Forgot to rename some vars
преди 9 години
Ben McClure
753ef7f12c
Renamed apt to apt_map to avoid conflict
преди 9 години
Ben McClure
5bb438a267
Extrapolated templates from the state file to jinja templates to clean things up and make them work properly. Also updated variables to match what Ubuntu 14.04 uses by default.
преди 9 години
Ben McClure
4db2ca91f4
Update unattended.sls
преди 9 години
Ben McClure
c9d1d16c78
Update map.jinja
преди 9 години
Ben McClure
bdf1710643
Update map.jinja
преди 9 години
root
0d72adde62
Fix map.jinja.
преди 9 години
root
8cd8d5c47e
Add "APT::Periodic::Verbose" setting to unattended state.
преди 9 години
root
751584ddb4
Add state to install unattended upgrades.
преди 9 години
Seth House
81ee729720
Change states to use short-dec style
преди 10 години
Wes Turner
01b4ebd967
ENH: Add apt.ppa for python-software-properties (add-apt-repository ppa:user/repository)
преди 10 години
Wes Turner
d74b06e4af
ENH: Add apt.transports.https and apt.transports.debtorrent
преди 10 години
Forrest Alvarez
00e0982275
renamed dist state.
преди 11 години
Forrest Alvarez
e1e06bec0d
Removed the init and broke the 3 commands out into their own files for additional flexibility, rebuilt the README to follow more recent standards, updated the License to use the more recent format as well.
преди 11 години