mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Implement static grains for the Philips HUE
This commit is contained in:
parent
5d3c3e09fc
commit
6a08d2b6b5
1 changed files with 34 additions and 0 deletions
34
salt/grains/philips_hue.py
Normal file
34
salt/grains/philips_hue.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Generate baseline proxy minion grains
|
||||
'''
|
||||
__proxyenabled__ = ['philips_hue']
|
||||
|
||||
__virtualname__ = 'hue'
|
||||
|
||||
|
||||
def __virtual__():
|
||||
if 'proxy' not in __opts__:
|
||||
return False
|
||||
else:
|
||||
return __virtualname__
|
||||
|
||||
|
||||
def kernel():
|
||||
return {'kernel': 'RTOS'}
|
||||
|
||||
|
||||
def os():
|
||||
return {'os': 'FreeRTOS'}
|
||||
|
||||
|
||||
def os_family():
|
||||
return {'os_family': 'RTOS'}
|
||||
|
||||
|
||||
def vendor():
|
||||
return {'vendor': 'Philips'}
|
||||
|
||||
|
||||
def product():
|
||||
return {'product': 'HUE'}
|
Loading…
Add table
Reference in a new issue