{"id":16139418,"url":"https://github.com/networkop/terraform-cvp","last_synced_at":"2025-04-06T17:43:18.526Z","repository":{"id":83590213,"uuid":"130747843","full_name":"networkop/terraform-cvp","owner":"networkop","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-07T11:24:17.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T23:45:12.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networkop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-23T19:41:52.000Z","updated_at":"2020-05-27T12:45:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f43415a0-f553-49eb-b6d9-30c75744daac","html_url":"https://github.com/networkop/terraform-cvp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fterraform-cvp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fterraform-cvp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fterraform-cvp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fterraform-cvp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networkop","download_url":"https://codeload.github.com/networkop/terraform-cvp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526675,"owners_count":20953141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T23:49:01.413Z","updated_at":"2025-04-06T17:43:18.509Z","avatar_url":"https://github.com/networkop.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arista CloudVision Terraform Provider\n\n# Caveats\n\n* Currently only supports create/read/delete operations on Devices and Configlets\n\n\n# Configure the CVP provider\n\n```\nprovider \"cvp\" {\n  # NOTE: Environment Variables can also be used for authentication\n\n  cvp_address    = \"...\"\n  cvp_user       = \"...\"\n  cvp_pwd        = \"...\"\n  cvp_container  = \"...\"\n}\n```\n\n# Device resource\nDevice resource creates a device inside CVP. The following options are available:\n\n* **ip_address** (Required) - defines the IP address of EOS device for CVP to connect to.\n* **wait** (Optional, Default is 60) - defines how long to wait for device to change state to \"Connected\". Reconcile and configlets defined below assume that device is \"Connected\".\n* **container** (Optional, Default is 'Tenant') - CVP container to put the device into.\n* **reconcile** (Optional, Default is false) - if set to true will attempt to reconcile the existing device configuration.\n* **configlets** (Optional) - a list of configlets to assign and optionally push to a device. If **push** is ommitted, this simply creates a pending task.\n\n\n```\nresource \"cvp_device\" \"Device-A\" {\n    ip_address = \"192.168.100.1\"\n    wait = \"60\"\n    container = \"Tenant\"\n    reconcile = true\n    configlets = [{\n        name = \"${cvp_configlet.test1.name}\"\n        push = true\n    }]\n}\n```\n\n# Configlet resource\nCreates a configlet inside CVP, accepts the following parameters:\n\n* **name** (Required) - configlet name\n* **config** (Required) - configlet configuration\n\n\n## Create a configlet with inline config\n```\nresource \"cvp_configlet\" \"Test1\" {\n    name = \"Test1\"\n    config = \u003c\u003cEOF\n    \\nusername TEST privilege 1 nopassword\n    hostname BLA\n    EOF\n}\n```\n\n## Create a Configlet from template\n\n```\ndata \"template_file\" \"init\" {\n    template = \"${file(\"config.tpl\")}\"\n\n    vars {\n        username = \"FOO\"\n        hostname = \"BAR\"\n    }\n} \n\nresource \"cvp_configlet\" \"Test2\" {\n    name = \"Test2\"\n    config = \"${data.template.test2.rendered\"}\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkop%2Fterraform-cvp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworkop%2Fterraform-cvp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkop%2Fterraform-cvp/lists"}