Skip to main content

Gnetcli-server adapter for Annet

Project description

gnetcli_adapter

This package provides deployer and fetcher adapters for Annet

Examples

Using specified login and password

cat ~/.annet/context.yml

fetcher:
  default:
    adapter: gnetcli
    params: &gnetcli
      dev_login: mylogin
      dev_password: mypassword
deployer:
  default:
    adapter: gnetcli
    params:
      <<: *gnetcli
...
context:
  default:
    fetcher: default
    deployer: default
selected_context: default

Using tunnel through master SSH-connection

https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing

cat ~/.ssh/context.yml

Host myhost*
    ProxyJump mybastion

Host mybastion
    ControlMaster auto
    ControlPath ~/.ssh/mastersockets/%r@%h:%p
    ControlPersist 120m

~/.annet/context.yml the same because gnetcli read .ssh/config by default.

Connecting to an externally-running gnetcli_server

If gnetcli_server is already running on a bastion host, set url and the adapter will connect to it instead of spawning a local server binary. login and password authenticate to the gnetcli server itself (Basic auth); dev_login/dev_password are still the network device credentials.

fetcher:
  default:
    adapter: gnetcli
    params: &gnetcli
      url: 192.0.2.10:50051
      login: gnetcli-user
      password: gnetcli-secret
      dev_login: mylogin
      dev_password: mypassword
deployer:
  default:
    adapter: gnetcli
    params:
      <<: *gnetcli

When url is unset, the adapter starts a local gnetcli_server subprocess (server_path defaults to gnetcli_server on $PATH).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gnetcli_adapter-2.8.3.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gnetcli_adapter-2.8.3-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file gnetcli_adapter-2.8.3.tar.gz.

File metadata

  • Download URL: gnetcli_adapter-2.8.3.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gnetcli_adapter-2.8.3.tar.gz
Algorithm Hash digest
SHA256 092b51e114532b18e68a671b9c102805836c85c56a2a9fcfe00a4105364082f8
MD5 d73d0d5545ccf9459faf7768d939f595
BLAKE2b-256 edd3ab167497d7b2eb19632660d06ee80da8bfe086276b30b8c3164b0f32acf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gnetcli_adapter-2.8.3.tar.gz:

Publisher: publish.yml on annetutil/gnetcli_adapter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gnetcli_adapter-2.8.3-py3-none-any.whl.

File metadata

  • Download URL: gnetcli_adapter-2.8.3-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gnetcli_adapter-2.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5e032af83b2a27b44bb645dc012c97e515ee783e64c484994cc3bde5ef5574
MD5 25b61d21e1830eace749779d9830eaa1
BLAKE2b-256 532bd31ecb181e12810686b861c266ca2730ffa732b072bc7b53385e0ea28e50

See more details on using hashes here.

Provenance

The following attestation bundles were made for gnetcli_adapter-2.8.3-py3-none-any.whl:

Publisher: publish.yml on annetutil/gnetcli_adapter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page