Browse Source

Initial structure

Jonathan Golder 2 years ago
commit
bb821dba6d
9 changed files with 275 additions and 0 deletions
  1. 29
    0
      .travis.yml
  2. 38
    0
      README.md
  3. 2
    0
      defaults/main.yml
  4. 2
    0
      handlers/main.yml
  5. 194
    0
      meta/main.yml
  6. 2
    0
      tasks/main.yml
  7. 1
    0
      tests/inventory
  8. 5
    0
      tests/test.yml
  9. 2
    0
      vars/main.yml

+ 29
- 0
.travis.yml View File

@@ -0,0 +1,29 @@
1
+---
2
+language: python
3
+python: "2.7"
4
+
5
+# Use the new container infrastructure
6
+sudo: false
7
+
8
+# Install ansible
9
+addons:
10
+  apt:
11
+    packages:
12
+    - python-pip
13
+
14
+install:
15
+  # Install ansible
16
+  - pip install ansible
17
+
18
+  # Check ansible version
19
+  - ansible --version
20
+
21
+  # Create ansible.cfg with correct roles_path
22
+  - printf '[defaults]\nroles_path=../' >ansible.cfg
23
+
24
+script:
25
+  # Basic role syntax check
26
+  - ansible-playbook tests/test.yml -i tests/inventory --syntax-check
27
+
28
+notifications:
29
+  webhooks: https://galaxy.ansible.com/api/v1/notifications/

+ 38
- 0
README.md View File

@@ -0,0 +1,38 @@
1
+Role Name
2
+=========
3
+
4
+A brief description of the role goes here.
5
+
6
+Requirements
7
+------------
8
+
9
+Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
10
+
11
+Role Variables
12
+--------------
13
+
14
+A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
15
+
16
+Dependencies
17
+------------
18
+
19
+A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
20
+
21
+Example Playbook
22
+----------------
23
+
24
+Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
25
+
26
+    - hosts: servers
27
+      roles:
28
+         - { role: username.rolename, x: 42 }
29
+
30
+License
31
+-------
32
+
33
+BSD
34
+
35
+Author Information
36
+------------------
37
+
38
+An optional section for the role authors to include contact information, or a website (HTML is not allowed).

+ 2
- 0
defaults/main.yml View File

@@ -0,0 +1,2 @@
1
+---
2
+# defaults file for dotqmail

+ 2
- 0
handlers/main.yml View File

@@ -0,0 +1,2 @@
1
+---
2
+# handlers file for dotqmail

+ 194
- 0
meta/main.yml View File

@@ -0,0 +1,194 @@
1
+galaxy_info:
2
+  author: your name
3
+  description: your description
4
+  company: your company (optional)
5
+
6
+  # If the issue tracker for your role is not on github, uncomment the
7
+  # next line and provide a value
8
+  # issue_tracker_url: http://example.com/issue/tracker
9
+
10
+  # Some suggested licenses:
11
+  # - BSD (default)
12
+  # - MIT
13
+  # - GPLv2
14
+  # - GPLv3
15
+  # - Apache
16
+  # - CC-BY
17
+  license: license (GPLv2, CC-BY, etc)
18
+
19
+  min_ansible_version: 1.2
20
+
21
+  # Optionally specify the branch Galaxy will use when accessing the GitHub
22
+  # repo for this role. During role install, if no tags are available,
23
+  # Galaxy will use this branch. During import Galaxy will access files on
24
+  # this branch. If travis integration is cofigured, only notification for this
25
+  # branch will be accepted. Otherwise, in all cases, the repo's default branch
26
+  # (usually master) will be used.
27
+  #github_branch:
28
+
29
+  #
30
+  # Below are all platforms currently available. Just uncomment
31
+  # the ones that apply to your role. If you don't see your
32
+  # platform on this list, let us know and we'll get it added!
33
+  #
34
+  #platforms:
35
+  #- name: EL
36
+  #  versions:
37
+  #  - all
38
+  #  - 5
39
+  #  - 6
40
+  #  - 7
41
+  #- name: GenericUNIX
42
+  #  versions:
43
+  #  - all
44
+  #  - any
45
+  #- name: OpenBSD
46
+  #  versions:
47
+  #  - all
48
+  #  - 5.6
49
+  #  - 5.7
50
+  #  - 5.8
51
+  #  - 5.9
52
+  #  - 6.0
53
+  #- name: Fedora
54
+  #  versions:
55
+  #  - all
56
+  #  - 16
57
+  #  - 17
58
+  #  - 18
59
+  #  - 19
60
+  #  - 20
61
+  #  - 21
62
+  #  - 22
63
+  #  - 23
64
+  #- name: opensuse
65
+  #  versions:
66
+  #  - all
67
+  #  - 12.1
68
+  #  - 12.2
69
+  #  - 12.3
70
+  #  - 13.1
71
+  #  - 13.2
72
+  #- name: MacOSX
73
+  #  versions:
74
+  #  - all
75
+  #  - 10.10
76
+  #  - 10.11
77
+  #  - 10.12
78
+  #  - 10.7
79
+  #  - 10.8
80
+  #  - 10.9
81
+  #- name: IOS
82
+  #  versions:
83
+  #  - all
84
+  #  - any
85
+  #- name: Solaris
86
+  #  versions:
87
+  #  - all
88
+  #  - 10
89
+  #  - 11.0
90
+  #  - 11.1
91
+  #  - 11.2
92
+  #  - 11.3
93
+  #- name: SmartOS
94
+  #  versions:
95
+  #  - all
96
+  #  - any
97
+  #- name: eos
98
+  #  versions:
99
+  #  - all
100
+  #  - Any
101
+  #- name: Windows
102
+  #  versions:
103
+  #  - all
104
+  #  - 2012R2
105
+  #- name: Amazon
106
+  #  versions:
107
+  #  - all
108
+  #  - 2013.03
109
+  #  - 2013.09
110
+  #- name: GenericBSD
111
+  #  versions:
112
+  #  - all
113
+  #  - any
114
+  #- name: Junos
115
+  #  versions:
116
+  #  - all
117
+  #  - any
118
+  #- name: FreeBSD
119
+  #  versions:
120
+  #  - all
121
+  #  - 10.0
122
+  #  - 10.1
123
+  #  - 10.2
124
+  #  - 10.3
125
+  #  - 8.0
126
+  #  - 8.1
127
+  #  - 8.2
128
+  #  - 8.3
129
+  #  - 8.4
130
+  #  - 9.0
131
+  #  - 9.1
132
+  #  - 9.1
133
+  #  - 9.2
134
+  #  - 9.3
135
+  #- name: Ubuntu
136
+  #  versions:
137
+  #  - all
138
+  #  - lucid
139
+  #  - maverick
140
+  #  - natty
141
+  #  - oneiric
142
+  #  - precise
143
+  #  - quantal
144
+  #  - raring
145
+  #  - saucy
146
+  #  - trusty
147
+  #  - utopic
148
+  #  - vivid
149
+  #  - wily
150
+  #  - xenial
151
+  #- name: SLES
152
+  #  versions:
153
+  #  - all
154
+  #  - 10SP3
155
+  #  - 10SP4
156
+  #  - 11
157
+  #  - 11SP1
158
+  #  - 11SP2
159
+  #  - 11SP3
160
+  #  - 11SP4
161
+  #  - 12
162
+  #  - 12SP1
163
+  #- name: GenericLinux
164
+  #  versions:
165
+  #  - all
166
+  #  - any
167
+  #- name: NXOS
168
+  #  versions:
169
+  #  - all
170
+  #  - any
171
+  #- name: Debian
172
+  #  versions:
173
+  #  - all
174
+  #  - etch
175
+  #  - jessie
176
+  #  - lenny
177
+  #  - sid
178
+  #  - squeeze
179
+  #  - stretch
180
+  #  - wheezy
181
+
182
+  galaxy_tags: []
183
+    # List tags for your role here, one per line. A tag is
184
+    # a keyword that describes and categorizes the role.
185
+    # Users find roles by searching for tags. Be sure to
186
+    # remove the '[]' above if you add tags to this list.
187
+    #
188
+    # NOTE: A tag is limited to a single word comprised of
189
+    # alphanumeric characters. Maximum 20 tags per role.
190
+
191
+dependencies: []
192
+  # List your role dependencies here, one per line.
193
+  # Be sure to remove the '[]' above if you add dependencies
194
+  # to this list.

+ 2
- 0
tasks/main.yml View File

@@ -0,0 +1,2 @@
1
+---
2
+# tasks file for dotqmail

+ 1
- 0
tests/inventory View File

@@ -0,0 +1 @@
1
+localhost

+ 5
- 0
tests/test.yml View File

@@ -0,0 +1,5 @@
1
+---
2
+- hosts: localhost
3
+  remote_user: root
4
+  roles:
5
+    - dotqmail

+ 2
- 0
vars/main.yml View File

@@ -0,0 +1,2 @@
1
+---
2
+# vars file for dotqmail