mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Corrected module name (removed "mod").
Corrected comment when test=True in set_file. Added example to specify env't for file in set_file.
This commit is contained in:
parent
34bd9891ce
commit
e44fd77334
@ -51,6 +51,10 @@ def set_file(name, source):
|
|||||||
debconf.set_file:
|
debconf.set_file:
|
||||||
- source: salt://pathto/pkg.selections
|
- source: salt://pathto/pkg.selections
|
||||||
|
|
||||||
|
<state_id>:
|
||||||
|
debconf.set_file:
|
||||||
|
- source: salt://pathto/pkg.selections?env=myenvironment
|
||||||
|
|
||||||
source:
|
source:
|
||||||
The location of the file containing the package selections
|
The location of the file containing the package selections
|
||||||
'''
|
'''
|
||||||
@ -61,10 +65,10 @@ def set_file(name, source):
|
|||||||
|
|
||||||
if __opts__['test']:
|
if __opts__['test']:
|
||||||
ret['result'] = None
|
ret['result'] = None
|
||||||
ret['comment'] = 'Debconf selections were set.'
|
ret['comment'] = 'Debconf selections would have been set.'
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
if __salt__['debconfmod.set_file'](source):
|
if __salt__['debconf.set_file'](source):
|
||||||
ret['comment'] = 'Debconf selections were set.'
|
ret['comment'] = 'Debconf selections were set.'
|
||||||
else:
|
else:
|
||||||
ret['result'] = False
|
ret['result'] = False
|
||||||
|
Loading…
Reference in New Issue
Block a user