Skip to content

Commit cb06b9b

Browse files
Updated docs, plugin imports (#55)
1 parent af0425a commit cb06b9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+133
-134
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ sudo: false
77

88
env:
99
global:
10-
- COLLECTION_NAMESPACE: fragmentedpacket
11-
- COLLECTION_NAME: netbox_modules
10+
- COLLECTION_NAMESPACE: netbox_community
11+
- COLLECTION_NAME: ansible_modules
1212
- COLLECTION_VERSION: 0.1.4
1313

1414
matrix:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Copying an existing module that has close to the same options is typically the p
240240
- Update the module_util, module, and endpoint variable for the endpoint
241241
242242
```python
243-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_dcim import (
243+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_dcim import (
244244
NetboxDcimModule,
245245
NB_DEVICE_ROLES,
246246
)

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/FragmentedPacket/netbox_modules.svg?branch=master)](https://travis-ci.org/FragmentedPacket/netbox_modules)
1+
[![Build Status](https://travis-ci.com/netbox-community/ansible_modules.svg?branch=devel)](https://travis-ci.com/netbox-community/ansible_modules)
22
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
33

44
# Netbox modules for Ansible using Ansible Collections
@@ -52,12 +52,12 @@
5252
## How to Use
5353

5454
- Install via Galaxy
55-
- `ansible-galaxy collection install fragmentedpacket.netbox_modules`
55+
- `ansible-galaxy collection install netbox_community.ansible_modules`
5656
- Install via source
57-
- `git clone git@github.com:fragmentedpacket/netbox_modules.git`
58-
- `cd netbox_modules`
57+
- `git clone git@github.com:netbox-community/ansible_modules.git`
58+
- `cd ansible_modules`
5959
- `ansible-galaxy collection build .`
60-
- `ansible-galaxy collection install fragmentedpacket-netbox_modules-X.X.X.tar.gz`
60+
- `ansible-galaxy collection install netbox_community-ansible_modules-X.X.X.tar.gz`
6161
- Can add `-p` to provide a different path other than the default path, but it must be within your `ansible.cfg` or provided via an environment variable.
6262

6363
### Example playbooks
@@ -70,7 +70,7 @@ Using the **collections** at the play level
7070
hosts: localhost
7171
gather_facts: False
7272
collections:
73-
- fragmentedpacket.netbox_modules
73+
- netbox_community.ansible_modules
7474

7575
tasks:
7676
- name: Create device within Netbox with only required information
@@ -96,7 +96,7 @@ Using the **collections** at the task level
9696

9797
tasks:
9898
- name: Create device within Netbox with only required information
99-
fragmentedpacket.netbox_modules.netbox_device:
99+
netbox_community.ansible_modules.netbox_device:
100100
netbox_url: http://netbox-demo.org:32768
101101
netbox_token: 0123456789abcdef0123456789abcdef01234567
102102
data:
@@ -113,7 +113,7 @@ Using the **collections** in a role's task files
113113
```yaml
114114
---
115115
- name: Create device within Netbox with only required information
116-
fragmentedpacket.netbox_modules.netbox_device:
116+
netbox_community.ansible_modules.netbox_device:
117117
netbox_url: http://netbox-demo.org:32768
118118
netbox_token: 0123456789abcdef0123456789abcdef01234567
119119
data:
@@ -129,7 +129,7 @@ OR
129129
---
130130
- name: Create device within Netbox with only required information
131131
collections:
132-
- fragmentedpacket.netbox_modules:
132+
- netbox_community.ansible_modules:
133133
netbox_device:
134134
netbox_url: http://netbox-demo.org:32768
135135
netbox_token: 0123456789abcdef0123456789abcdef01234567
@@ -155,9 +155,9 @@ Using the **collections** lookup plugin at the task level
155155
assert:
156156
that: "{{ query_result|count }} == 3"
157157
vars:
158-
query_result: "{{ query('fragmentedpacket.netbox_modules.netbox', 'sites', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}"
158+
query_result: "{{ query('netbox_community.ansible_modules.netbox', 'sites', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}"
159159
```
160160
161161
## How to Contribute
162162
163-
Please read ![Contributing](CONTRIBUTING.md)
163+
Please read ![Contributing](CONTRIBUTING.md)

galaxy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# The namespace of the collection. This can be a company/brand/organization or product namespace under which all
44
# content lives. May only contain alphanumeric characters and underscores. Additionally namespaces cannot start with
55
# underscores or numbers and cannot contain consecutive underscores
6-
namespace: fragmentedpacket
6+
namespace: netbox_community
77

88
# The name of the collection. Has the same character restrictions as 'namespace'
9-
name: netbox_modules
9+
name: ansible_modules
1010

1111
# The version of the collection. Must be compatible with semantic versioning
1212
version: 0.1.4
@@ -17,8 +17,7 @@ readme: README.md
1717
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)
1818
# @nicks:irc/im.site#channel'
1919
authors:
20-
- Mikhail Yohman <mikhail.yohman@gmail.com>
21-
20+
- Mikhail Yohman <mikhail.yohman@gmail.com>
2221

2322
### OPTIONAL but strongly recommended
2423

@@ -28,11 +27,11 @@ description: This is a collection of Netbox Ansible modules
2827
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
2928
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
3029
license:
31-
- MIT
30+
- MIT
3231

3332
# The path to the license file for the collection. This path is relative to the root of the collection. This key is
3433
# mutually exclusive with 'license'
35-
license_file: ''
34+
license_file: ""
3635

3736
# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character
3837
# requirements as 'namespace' and 'name'
@@ -49,13 +48,13 @@ tags:
4948
dependencies: {}
5049

5150
# The URL of the originating SCM repository
52-
repository: https://github.com/FragmentedPacket/netbox_modules
51+
repository: https://github.com/netbox-community/ansible_modules
5352

5453
# The URL to any online docs
55-
documentation:
54+
documentation:
5655

5756
# The URL to the homepage of the collection/project
5857
homepage:
5958

6059
# The URL to the collection issue tracker
61-
issues: https://github.com/FragmentedPacket/netbox_modules/issues
60+
issues: https://github.com/netbox-community/ansible_modules/issues

plugins/module_utils/netbox_circuits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# This should just be temporary once 2.9 is relased and tested we can remove this
99
try:
10-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_utils import (
10+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_utils import (
1111
NetboxModule,
1212
ENDPOINT_NAME_MAPPING,
1313
SLUG_REQUIRED,

plugins/module_utils/netbox_dcim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ansible.module_utils.basic import missing_required_lib
1111

1212
try:
13-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_utils import (
13+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_utils import (
1414
NetboxModule,
1515
ENDPOINT_NAME_MAPPING,
1616
SLUG_REQUIRED,

plugins/module_utils/netbox_extras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# This should just be temporary once 2.9 is relased and tested we can remove this
99
try:
10-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_utils import (
10+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_utils import (
1111
NetboxModule,
1212
ENDPOINT_NAME_MAPPING,
1313
)

plugins/module_utils/netbox_ipam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from ansible.module_utils.basic import missing_required_lib
1313

1414
try:
15-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_utils import (
15+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_utils import (
1616
NetboxModule,
1717
ENDPOINT_NAME_MAPPING,
1818
SLUG_REQUIRED,

plugins/module_utils/netbox_secrets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# This should just be temporary once 2.9 is relased and tested we can remove this
99
try:
10-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_utils import (
10+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_utils import (
1111
NetboxModule,
1212
ENDPOINT_NAME_MAPPING,
1313
)

plugins/module_utils/netbox_tenancy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# This should just be temporary once 2.9 is relased and tested we can remove this
99
try:
10-
from ansible_collections.fragmentedpacket.netbox_modules.plugins.module_utils.netbox_utils import (
10+
from ansible_collections.netbox_community.ansible_modules.plugins.module_utils.netbox_utils import (
1111
NetboxModule,
1212
ENDPOINT_NAME_MAPPING,
1313
)

0 commit comments

Comments
 (0)