Commit 4e9e0ccf authored by lavado's avatar lavado
Browse files

Merge branch 'snmp_setcomm_change' into 'master'

updates to snmp setcomm package

See merge request !80
parents 7345dd6f fffc456f
......@@ -15,8 +15,7 @@ set service ssh listen-address 0.0.0.0
set service ssh port 22
set system login user osm authentication plaintext-password osm2020
# SNMP
set service snmp community public authorization ro
set service snmp location "OSM Labs"
# Save
commit
save
\ No newline at end of file
save
......@@ -11,4 +11,4 @@ modules:
lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName
auth:
# Community string is used with SNMP v1 and v2. Defaults to "public".
community: public
community: secret
---
- hosts: all
connection: local
tasks:
- name: change SNMP community
vyos_config:
lines:
- set service snmp community "{{ snmp_community }}" authorization ro
---
- name: This is a hello-world example
hosts: all
tasks:
- name: Create a file called '/tmp/testfile.txt' with the content 'hello world'.
copy:
content: hello worldn
dest: "{{ file_path }}"
......@@ -72,7 +72,7 @@ class VnfEE:
self._check_required_params(params, ["playbook-name"])
params["ansible_user"] = self.config_params["ssh-username"]
#params["ansible_password"] = self.config_params["ssh-password"]
params["ansible_password"] = self.config_params["ssh-password"]
inventory = self.config_params["ssh-hostname"] + ","
......
......@@ -48,10 +48,6 @@ vnfd-catalog:
mgmt-interface:
cp: vnf-mgmt
vnf-configuration:
config-access:
ssh-access:
default-user: ubuntu
required: true
execution-environment-list:
- id: monitor
helm-chart: eechart
......@@ -65,7 +61,9 @@ vnfd-catalog:
- name: ssh-hostname
value: <rw_mgmt_ip>
- name: ssh-username
value: ubuntu
value: osm
- name: ssh-password
value: osm2020
- seq: 2
name: generate_snmp
execution-environment-ref: monitor
......@@ -74,19 +72,16 @@ vnfd-catalog:
execution-environment-ref: monitor
parameter:
- name: playbook-name
value: touch.yaml
- name: file_path
value: /var/tmp/test-touch.txt
value: community.yaml
- name: snmp_community
value: secret
config-primitive:
- name: generate_snmp
execution-environment-ref: monitor
- name: touch
- name: ansible_playbook
execution-environment-ref: monitor
execution-environment-primitive: ansible_playbook
parameter:
- name: playbook-name
default-value: touch
data-type: STRING
- name: file-path
default-value: /var/tmp/test-touch2.txt
default-value: playbook.yaml
data-type: STRING
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment