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:
Nick Davis 2013-02-20 19:03:32 -05:00
parent 34bd9891ce
commit e44fd77334

View File

@ -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