diff options
6 files changed, 12 insertions, 10 deletions
| diff --git a/changelogs/fragments/change_host_name.yml b/changelogs/fragments/change_host_name.yml new file mode 100644 index 00000000..3c73965d --- /dev/null +++ b/changelogs/fragments/change_host_name.yml @@ -0,0 +1,3 @@ +--- +minor_changes: +  - Change preconfig hostname from vyos to vyosuser diff --git a/docs/vyos.vyos.vyos_cliconf.rst b/docs/vyos.vyos.vyos_cliconf.rst index 508a6614..9ad60af1 100644 --- a/docs/vyos.vyos.vyos_cliconf.rst +++ b/docs/vyos.vyos.vyos_cliconf.rst @@ -72,7 +72,7 @@ Status  Authors  ~~~~~~~ -- Ansible Networking Team +- Ansible Networking Team (@ansible-network)  .. hint:: diff --git a/plugins/cliconf/vyos.py b/plugins/cliconf/vyos.py index 339aed95..b100ce01 100644 --- a/plugins/cliconf/vyos.py +++ b/plugins/cliconf/vyos.py @@ -1,4 +1,3 @@ -#  # (c) 2017 Red Hat Inc.  #  # This file is part of Ansible @@ -21,8 +20,8 @@ from __future__ import absolute_import, division, print_function  __metaclass__ = type  DOCUMENTATION = """ -author: Ansible Networking Team -cliconf: vyos +author: Ansible Networking Team (@ansible-network) +name: vyos  short_description: Use vyos cliconf to run command on VyOS platform  description:  - This vyos plugin provides low level abstraction apis for sending and receiving CLI diff --git a/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml b/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml index 4d332896..b8cb5f46 100644 --- a/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml +++ b/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml @@ -2,7 +2,7 @@  - name: setup    vyos.vyos.vyos_config:      lines: -      - set system host-name 'vyos' +      - set system host-name 'vyosuser'    ignore_errors: true    vars:      ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml b/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml index 229c79c8..9850e2f3 100644 --- a/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml +++ b/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml @@ -1,8 +1,8 @@  --- -- name: Remove pre-existing hostname config -  vyos.vyos.vyos_hostname: -    config: -    state: deleted +- name: Delete Hostname vyosuser +  vyos.vyos.vyos_config: +    lines: +      - delete system host-name 'vyosuser'    ignore_errors: true    vars:      ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_hostname/vars/main.yaml b/tests/integration/targets/vyos_hostname/vars/main.yaml index a6b49866..615da43b 100644 --- a/tests/integration/targets/vyos_hostname/vars/main.yaml +++ b/tests/integration/targets/vyos_hostname/vars/main.yaml @@ -8,5 +8,5 @@ merged:  deleted:    commands: -    - delete system host-name vyos +    - delete system host-name vyosuser    after: {} | 
