def setsebool(boolean, value, persist=False):
 if persist:
  cmd = 'setsebool -P {0} {1}'.format(boolean, value)
 else:
  cmd = 'setsebool {0} {1}'.format(boolean, value)
 return (not __salt__['cmd.retcode'](cmd, python_shell=False))

def setsebool ( boolean , value , persist = False ) : if persist : cmd = 'setsebool -P {0} {1}' . format ( boolean , value ) else : cmd = 'setsebool {0} {1}' . format ( boolean , value ) return ( not __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) )
set the value for a boolean cli example: .