Skip to content

Release 1.2.0

Compare
Choose a tag to compare
@shermdog shermdog released this 31 Jul 16:14
· 599 commits to master since this release

New Features

Added junos_srx_cluster

  • SRX devices can be joined or removed from a cluster

    Example

    -junos_srx_cluster:
    host={{ inventory_hostname }}
    console="--port={{ serial }}"
    cluster_enable=true
    logfile=cluster.log
    cluster_id={{ cluster_id }}
    node={{ node_id }}
    
    -junos_srx_cluster:
    host={{ inventory_hostname }}
    cluster_enable=false
    logfile=cluster.log

Added junos_get_config

  • Configuration can be retrieved from a device and stored as a file. Supports text (default) and XML format. Configuration filter and options supported.

    Example

    - junos_get_config:
    host: "{{ inventory_hostname }}"
    logfile: get_config.log
    dest: "{{ inventory_hostname }}.xml"
    format: xml
    filter: "interfaces"
    options: {inherit: inherit, groups: groups}

Added junos_rollback

  • Configuration will be rolled back and committed to Rollback Id provided. Module supports commit comments and confirm.

    Example

    - junos_rollback:
    host: "{{ inventory_hostname }}"
    logfile=rollback.log
    diffs_file=rollback.diff
    rollback=1
    comment="Rolled back by Ansible"
    confirm=5

Added junos_commit

  • Execute a commit independently of loading a configuration.

    Example

    - junos_commit:
    host: "{{ inventory_hostname }}"
    logfile=changes.log
    comment="Non load commit"

Updated junos_install_config

  • Now supports Load Replace

  • Now supports Commit Confirmed

    Example

    - junos_install_config:
    host={{ inventory_hostname }}
    file=snmp.conf
    replace=yes
    confirm=5

Bugs Fixed

junos_install_config

  • Underlying PyEZ exceptions were not being properly captured and logged. #56
  • Warnings (RpcError) were not triggering rollback. Warning will now prevent a configuration from loading. (Per PyEZ functionality). #58
2015-07-29 17:12:48,505:CONFIG:pabst.englab.juniper.net:pushing file: /home/rsherman/workspace/warning.set
2015-07-29 17:12:48,505:CONFIG:pabst.englab.juniper.net:taking lock
2015-07-29 17:12:48,828:CONFIG:pabst.englab.juniper.net:loading config
2015-07-29 17:12:49,980:CONFIG:pabst.englab.juniper.net:doing a commit-check, please be patient
2015-07-29 17:12:51,467:CONFIG:pabst.englab.juniper.net:Unable to commit configuration: CommitError(edit_path: [edit security policies from-zone corp to-zone], bad_element: corp, message: mgd: Security zone must be defined)