mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
commit
8caa9c56cc
@ -51,6 +51,10 @@ def set_file(name, source):
|
||||
debconf.set_file:
|
||||
- source: salt://pathto/pkg.selections
|
||||
|
||||
<state_id>:
|
||||
debconf.set_file:
|
||||
- source: salt://pathto/pkg.selections?env=myenvironment
|
||||
|
||||
source:
|
||||
The location of the file containing the package selections
|
||||
'''
|
||||
@ -61,10 +65,10 @@ def set_file(name, source):
|
||||
|
||||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
ret['comment'] = 'Debconf selections were set.'
|
||||
ret['comment'] = 'Debconf selections would have been set.'
|
||||
return ret
|
||||
|
||||
if __salt__['debconfmod.set_file'](source):
|
||||
if __salt__['debconf.set_file'](source):
|
||||
ret['comment'] = 'Debconf selections were set.'
|
||||
else:
|
||||
ret['result'] = False
|
||||
|
Loading…
Reference in New Issue
Block a user