Пример #1
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('bsmcomponents')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
Пример #2
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('monitoringservers')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('hosts')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('variables')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
Пример #5
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('notificationmethods')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
Пример #6
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('servicechecks')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
Пример #7
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('hostcheckcommands')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
Пример #8
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('bsmservices')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
Пример #9
0
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('sharednotificationprofiles')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()
#!/usr/bin/env python

from ansible.module_utils.basic import *
from pyopsview.ansible.module_utils.opsview import OpsviewAnsibleModuleAdvanced

if __name__ == '__main__':
    module = OpsviewAnsibleModuleAdvanced('timeperiods')

    try:
        module()
    except Exception as ex:
        module.fail(str(ex))
    else:
        module.exit()