Skip to content

Commit c4940cd

Browse files
author
Bradley A. Thornton
authored
Merge pull request #8 from ansible-network/bt_add_company
Bt add company
2 parents 91eba27 + 4a7050c commit c4940cd

File tree

16 files changed

+745
-14
lines changed

16 files changed

+745
-14
lines changed

models/myos/interfaces/myos_interfaces.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ metadata:
55
- preview
66
supported_by:
77
- '<support_group>'
8+
copyright_str: Copyright 2019 <company_name>
9+
license: gpl-3.0.txt
810
info:
911
network_os: myos
1012
resource: interfaces

roles/init/files/gpl-3.0.txt

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

roles/init/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
state: directory
2222
with_items: "{{ directories[structure] }}"
2323

24+
- name: Copy the license file to the parent directory
25+
copy:
26+
src: "{{ rm['metadata']['license'] }}"
27+
dest: "{{ parent }}/LICENSE.txt"
28+
2429
- name: Ensure the 'collection_org' is set when 'structure' is set to collection
2530
assert:
2631
that: collection_org is defined

roles/resource_module/tasks/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
- name: Create the file, if it doesnt exist already or override is set
77
template:
88
src: "{{ template['source'] }}"
9-
dest: "{{ parent_directory}}/{{ template['destination'] }}"
9+
dest: "{{ template['destination'] }}"
1010
when: not file_stat.stat.exists or template['overwrite']
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Ansible network resource module: {{ network_os }}_{{ resource }}
2+
3+
This README was auto generated but should be modified. It should contain information and examples
4+
for the {{ structure }} that was generated if the {{ structure }} is distributed independently.

roles/resource_module/templates/module_directory/network_os/network_os_resource.py.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
3-
4-
# (c) 2018, Red Hat, Inc.
3+
# {{ rm['metadata']['copyright_str'] }}
54
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
65

76
##############################################

roles/resource_module/templates/module_utils/network/argspec/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
# {{ rm['metadata']['copyright_str'] }}
4+
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5+
16
class ArgspecBase(object):
27

38
def __init__(self, **kwargs):

roles/resource_module/templates/module_utils/network_os/argspec/facts/facts.py.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
# {{ rm['metadata']['copyright_str'] }}
4+
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5+
16
from {{ import_path }}.network.argspec.base import ArgspecBase
27

38
class FactsArgs(ArgspecBase):

roles/resource_module/templates/module_utils/network_os/argspec/resource/resource.py.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
# {{ rm['metadata']['copyright_str'] }}
4+
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5+
16
#############################################
27
################# WARNING ####################
38
##############################################

roles/resource_module/templates/module_utils/network_os/config/base.py.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
from ansible.module_utils.connection import Connection
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
# {{ rm['metadata']['copyright_str'] }}
4+
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
25

6+
from ansible.module_utils.connection import Connection
37

48
class ConfigBase(object):
59

0 commit comments

Comments
 (0)