mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 22:39:09 -07:00
new module nomad_job & nomad_job_info (#867)
* nomad_job module * Delete nomad_job.py * new module nomad_job * fix symlink * disable test with centos6 , not supported * fix centos unsupported * fix * requested changes doc * disable freebsd ci * requested change docs + check_mode * lint * fix syntax * update docs * doc fix Co-authored-by: Felix Fontein <felix@fontein.de> * Update nomad_job.py fix docs + ssl true default * Update nomad_job.yml disable ssl ci * nomad_job_info * Update nomad_job_info.py fix token nomad job info * Update nomad_job.py idempotence + check_mode plan result * Update nomad_job.py fail if no id with json content * Update nomad_job.yml ci idempotence + check_mode , nomad_job and nomad_job_info * Update nomad_job.yml fix ci * Update main.yml add kill nomad ci * Update main.yml always kill * fix check mode delete job * ci with delete and check_mode * lint * force start in first deploy * 12.4 nomad * fix version nomad * fix ci assert * fix ci * fix ci * lint * fix version job id None, import os unused * lint job_info * Update aliases * docs frag + info refacto * lint lint * ci * jmespath * fix ci Co-authored-by: FERREIRA Christophe <christophe.ferreira@cnaf.fr> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b5b5410575
commit
b2e075e6d3
10 changed files with 1255 additions and 0 deletions
51
plugins/doc_fragments/nomad.py
Normal file
51
plugins/doc_fragments/nomad.py
Normal file
|
@ -0,0 +1,51 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2020 FERREIRA Christophe <christophe.ferreira@cnaf.fr>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
|
||||
# Standard files documentation fragment
|
||||
DOCUMENTATION = r'''
|
||||
options:
|
||||
host:
|
||||
description:
|
||||
- FQDN of Nomad server.
|
||||
required: true
|
||||
type: str
|
||||
use_ssl:
|
||||
description:
|
||||
- Use TLS/SSL connection.
|
||||
type: bool
|
||||
default: true
|
||||
timeout:
|
||||
description:
|
||||
- Timeout (in seconds) for the request to Nomad.
|
||||
type: int
|
||||
default: 5
|
||||
validate_certs:
|
||||
description:
|
||||
- Enable TLS/SSL certificate validation.
|
||||
type: bool
|
||||
default: true
|
||||
client_cert:
|
||||
description:
|
||||
- Path of certificate for TLS/SSL.
|
||||
type: path
|
||||
client_key:
|
||||
description:
|
||||
- Path of certificate's private key for TLS/SSL.
|
||||
type: path
|
||||
namespace:
|
||||
description:
|
||||
- Namespace for Nomad.
|
||||
type: str
|
||||
token:
|
||||
description:
|
||||
- ACL token for authentification.
|
||||
type: str
|
||||
'''
|
Loading…
Add table
Add a link
Reference in a new issue