ops-cli 2.4.1__tar.gz → 2.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. {ops_cli-2.4.1/src/ops_cli.egg-info → ops_cli-2.5.1}/PKG-INFO +43 -130
  2. {ops_cli-2.4.1 → ops_cli-2.5.1}/README.md +2 -2
  3. ops_cli-2.5.1/requirements.txt +49 -0
  4. {ops_cli-2.4.1 → ops_cli-2.5.1}/setup.py +6 -9
  5. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/__init__.py +6 -9
  6. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/filter_plugins/commonfilters.py +4 -7
  7. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/vars_plugins/clusterconfig.py +2 -2
  8. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/vars_plugins/opsconfig.py +2 -2
  9. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/__init__.py +1 -1
  10. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/config.py +3 -3
  11. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/config_generator.py +1 -1
  12. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/helmfile.py +2 -2
  13. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/inventory.py +1 -1
  14. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/packer.py +1 -1
  15. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/parser.py +2 -27
  16. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/playbook.py +1 -1
  17. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/run.py +1 -1
  18. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/ssh.py +2 -2
  19. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/sync.py +2 -2
  20. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/terraform.py +1 -3
  21. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/hierarchical/composition_config_generator.py +4 -4
  22. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/SKMS.py +8 -9
  23. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/azurerm.py +28 -48
  24. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/caching.py +1 -5
  25. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/ec2inventory.py +1 -1
  26. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/generator.py +8 -8
  27. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/plugin/azr.py +3 -6
  28. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/plugin/skms.py +30 -40
  29. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/sshconfig.py +1 -1
  30. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/jinja/__init__.py +1 -1
  31. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/main.py +1 -1
  32. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/opsconfig.py +1 -1
  33. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/simpleconsul.py +3 -5
  34. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/simplessm.py +1 -1
  35. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/simplevault.py +7 -7
  36. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/terraform/terraform_cmd_generator.py +1 -1
  37. {ops_cli-2.4.1 → ops_cli-2.5.1/src/ops_cli.egg-info}/PKG-INFO +43 -130
  38. ops_cli-2.5.1/src/ops_cli.egg-info/requires.txt +71 -0
  39. ops_cli-2.4.1/requirements.txt +0 -136
  40. ops_cli-2.4.1/src/ops_cli.egg-info/requires.txt +0 -160
  41. {ops_cli-2.4.1 → ops_cli-2.5.1}/LICENSE +0 -0
  42. {ops_cli-2.4.1 → ops_cli-2.5.1}/MANIFEST.in +0 -0
  43. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/.opsconfig.yaml +0 -0
  44. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/README.md +0 -0
  45. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/clusters/kubeconfigs/README.md +0 -0
  46. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/clusters/my-kubernetes-cluster.yaml +0 -0
  47. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/backends.tf.jinja2 +0 -0
  48. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/common_variables.tf.jinja2 +0 -0
  49. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/configure-local-kubectl.tf.jinja2 +0 -0
  50. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/eks-cluster-autoscaler.tf.jinja2 +0 -0
  51. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/eks-cluster.tf.jinja2 +0 -0
  52. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/eks-worker-nodes-auth-configmap.tf.jinja2 +0 -0
  53. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/eks-worker-nodes.tf.jinja2 +0 -0
  54. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/outputs.tf.jinja2 +0 -0
  55. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/providers.tf.jinja2 +0 -0
  56. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/scripts/fileexist.sh +0 -0
  57. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/variables.tf.jinja2 +0 -0
  58. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/aws-eks/vpc.tf.jinja2 +0 -0
  59. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/common/backends.tf.jinja2 +0 -0
  60. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/common/common_variables.tf.jinja2 +0 -0
  61. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/common/providers.tf.jinja2 +0 -0
  62. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/backends.tf.jinja2 +0 -0
  63. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/cluster-autoscaler.tf +0 -0
  64. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/common_variables.tf.jinja2 +0 -0
  65. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/dashboard.tf +0 -0
  66. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/kube-state-metrics.tf +0 -0
  67. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/kube2iam.tf +0 -0
  68. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/provider_helm.tf.jinja2 +0 -0
  69. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/providers.tf.jinja2 +0 -0
  70. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm/variables.tf.jinja2 +0 -0
  71. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm-init/backends.tf.jinja2 +0 -0
  72. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/compositions/generic/helm-init/helm-init.tf.jinja2 +0 -0
  73. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/aws-kubernetes/update.sh +0 -0
  74. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/.opsconfig.yaml +0 -0
  75. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/README.md +0 -0
  76. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/install_stress_tool.yaml +0 -0
  77. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/setup.yaml +0 -0
  78. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/setup12.yaml +0 -0
  79. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/templates/cassandra-env.sh +0 -0
  80. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/templates/cassandra_defaults.yaml +0 -0
  81. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/templates/cassandra_defaults_12.yaml +0 -0
  82. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible/templates/stress.yaml +0 -0
  83. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/ansible.cfg +0 -0
  84. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/cluster1.yaml +0 -0
  85. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/cluster2.yaml +0 -0
  86. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/main/main.tf.jinja2 +0 -0
  87. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/main/variables.tf.jinja2 +0 -0
  88. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/modules/cassandra/main.tf.jinja2 +0 -0
  89. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/modules/macros.tf.jinja2 +0 -0
  90. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/modules/shared_iam/default_policy.json +0 -0
  91. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/modules/vpc/main.tf.jinja2 +0 -0
  92. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/cassandra-stress/terraform/user_data +0 -0
  93. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/README.md +0 -0
  94. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/cluster/dev/dev.yaml +0 -0
  95. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/cluster/prod/prod.yaml +0 -0
  96. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/inventory/hosts +0 -0
  97. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/password_dev.txt +0 -0
  98. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/password_prod.txt +0 -0
  99. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/playbook/example.yaml +0 -0
  100. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/vault/vault_dev.yaml +0 -0
  101. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/ansible-vault/vault/vault_prod.yaml +0 -0
  102. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/inventory/.opsconfig.yaml +0 -0
  103. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/inventory/README.md +0 -0
  104. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/inventory/local_inventory/hosts +0 -0
  105. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/inventory/my-aws-cluster.yaml +0 -0
  106. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/inventory/my-azure-cluster.yaml +0 -0
  107. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/packer/README.md +0 -0
  108. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/packer/clusters/ubuntu.yaml +0 -0
  109. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/packer/packer/ubuntu.json +0 -0
  110. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/.gitignore +0 -0
  111. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/README.md +0 -0
  112. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/ansible/ansible.cfg +0 -0
  113. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/ansible/playbooks/site.yaml +0 -0
  114. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/ansible/roles/common/tasks/main.yaml +0 -0
  115. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/ansible/roles/db/tasks/main.yaml +0 -0
  116. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/ansible/roles/web/tasks/main.yaml +0 -0
  117. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/ansible/tasks/copy-key.yaml +0 -0
  118. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/clusters/example.yaml +0 -0
  119. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/main/main.tf.jinja2 +0 -0
  120. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/main/shared_variables.tf +0 -0
  121. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/db/instance.tf.jinja2 +0 -0
  122. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/db/main.tf.jinja2 +0 -0
  123. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/macros.tf.jinja2 +0 -0
  124. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/shared_iam/default_policy.json +0 -0
  125. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/vpc/main.tf.jinja2 +0 -0
  126. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/web/elb.tf.jinja2 +0 -0
  127. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/web/instance.tf.jinja2 +0 -0
  128. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/modules/web/main.tf.jinja2 +0 -0
  129. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-and-ansible/terraform/user_data +0 -0
  130. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/.opsconfig.yaml +0 -0
  131. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/README.md +0 -0
  132. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/compositions/terraform/cluster/main.tf +0 -0
  133. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/compositions/terraform/network/main.tf +0 -0
  134. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/cluster=cluster1/composition=cluster/conf.yaml +0 -0
  135. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/cluster=cluster1/composition=network/conf.yaml +0 -0
  136. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/cluster=cluster1/conf.yaml +0 -0
  137. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/cluster=cluster2/composition=cluster/conf.yaml +0 -0
  138. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/cluster=cluster2/composition=network/conf.yaml +0 -0
  139. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/cluster=cluster2/conf.yaml +0 -0
  140. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/config/env=dev/default.yaml +0 -0
  141. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/modules/cluster/main.tf +0 -0
  142. {ops_cli-2.4.1 → ops_cli-2.5.1}/examples/features/terraform-hierarchical/modules/network/main.tf +0 -0
  143. {ops_cli-2.4.1 → ops_cli-2.5.1}/setup.cfg +0 -0
  144. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/__init__.py +0 -0
  145. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/callback_plugins/__init__.py +0 -0
  146. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/filter_plugins/__init__.py +0 -0
  147. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/ansible/vars_plugins/__init__.py +0 -0
  148. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/cli/aws.py +0 -0
  149. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ansible/ansible.cfg +0 -0
  150. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ansible/tasks/deploy_prometheus_alert_rules.yml +0 -0
  151. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ansible/tasks/install_rpm.yml +0 -0
  152. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ansible/tasks/remove_prometheus_alert_rules.yml +0 -0
  153. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ssh/ssh.config +0 -0
  154. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ssh/ssh.scb.proxy.config.tpl +0 -0
  155. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ssh/ssh.teleport.config.tpl +0 -0
  156. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/ssh/ssh.tunnel.config +0 -0
  157. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/data/terraform/terraformrc +0 -0
  158. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/git_utils.py +0 -0
  159. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/hierarchical/__init__.py +0 -0
  160. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/__init__.py +0 -0
  161. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/plugin/__init__.py +0 -0
  162. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/plugin/cns.py +0 -0
  163. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/plugin/ec2.py +0 -0
  164. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/inventory/plugin/legacy_pcs.py +0 -0
  165. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops/terraform/__init__.py +0 -0
  166. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops_cli.egg-info/SOURCES.txt +0 -0
  167. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops_cli.egg-info/dependency_links.txt +0 -0
  168. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops_cli.egg-info/entry_points.txt +0 -0
  169. {ops_cli-2.4.1 → ops_cli-2.5.1}/src/ops_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ops-cli
3
- Version: 2.4.1
3
+ Version: 2.5.1
4
4
  Summary: Ops - wrapper for Terraform, Ansible, and SSH for cloud automation
5
5
  Home-page: https://github.com/adobe/ops-cli
6
6
  Author: Adobe
@@ -12,153 +12,66 @@ Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
- Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Programming Language :: Python :: Implementation :: CPython
19
19
  Classifier: Programming Language :: Python :: Implementation :: PyPy
20
20
  Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
21
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
22
  Classifier: Topic :: Text Processing :: Markup :: HTML
23
- Requires-Python: >=3.5
23
+ Requires-Python: >=3.12
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
- Requires-Dist: adal==1.2.7
27
- Requires-Dist: ansible==8.7.0; python_version >= "3.9"
28
- Requires-Dist: ansible-core==2.15.13; python_version >= "3.9"
29
- Requires-Dist: awscli==1.42.30; python_version >= "3.9"
30
- Requires-Dist: azure==4.0.0
31
- Requires-Dist: azure-applicationinsights==0.1.1
32
- Requires-Dist: azure-batch==4.1.3
33
- Requires-Dist: azure-common==1.1.28
34
- Requires-Dist: azure-core==1.38.0; python_version >= "3.9"
35
- Requires-Dist: azure-cosmosdb-nspkg==2.0.2
36
- Requires-Dist: azure-cosmosdb-table==1.0.6
37
- Requires-Dist: azure-datalake-store==0.0.53
38
- Requires-Dist: azure-eventgrid==1.3.0
39
- Requires-Dist: azure-graphrbac==0.40.0
40
- Requires-Dist: azure-keyvault==1.1.0
41
- Requires-Dist: azure-loganalytics==0.1.1
42
- Requires-Dist: azure-mgmt==4.0.0
43
- Requires-Dist: azure-mgmt-advisor==1.0.1
44
- Requires-Dist: azure-mgmt-applicationinsights==0.1.1
45
- Requires-Dist: azure-mgmt-authorization==0.50.0
46
- Requires-Dist: azure-mgmt-batch==5.0.1
47
- Requires-Dist: azure-mgmt-batchai==2.0.0
48
- Requires-Dist: azure-mgmt-billing==0.2.0
49
- Requires-Dist: azure-mgmt-cdn==3.1.0
50
- Requires-Dist: azure-mgmt-cognitiveservices==3.0.0
51
- Requires-Dist: azure-mgmt-commerce==1.0.1
52
- Requires-Dist: azure-mgmt-compute==4.6.2
53
- Requires-Dist: azure-mgmt-consumption==2.0.0
54
- Requires-Dist: azure-mgmt-containerinstance==1.5.0
55
- Requires-Dist: azure-mgmt-containerregistry==2.8.0
56
- Requires-Dist: azure-mgmt-containerservice==4.4.0
57
- Requires-Dist: azure-mgmt-cosmosdb==0.4.1
58
- Requires-Dist: azure-mgmt-datafactory==0.6.0
59
- Requires-Dist: azure-mgmt-datalake-analytics==0.6.0
60
- Requires-Dist: azure-mgmt-datalake-nspkg==3.0.1
61
- Requires-Dist: azure-mgmt-datalake-store==0.5.0
62
- Requires-Dist: azure-mgmt-datamigration==1.0.0
63
- Requires-Dist: azure-mgmt-devspaces==0.1.0
64
- Requires-Dist: azure-mgmt-devtestlabs==2.2.0
65
- Requires-Dist: azure-mgmt-dns==2.1.0
66
- Requires-Dist: azure-mgmt-eventgrid==1.0.0
67
- Requires-Dist: azure-mgmt-eventhub==2.6.0
68
- Requires-Dist: azure-mgmt-hanaonazure==0.1.1
69
- Requires-Dist: azure-mgmt-iotcentral==0.1.0
70
- Requires-Dist: azure-mgmt-iothub==0.5.0
71
- Requires-Dist: azure-mgmt-iothubprovisioningservices==0.2.0
72
- Requires-Dist: azure-mgmt-keyvault==1.1.0
73
- Requires-Dist: azure-mgmt-loganalytics==0.2.0
74
- Requires-Dist: azure-mgmt-logic==3.0.0
75
- Requires-Dist: azure-mgmt-machinelearningcompute==0.4.1
76
- Requires-Dist: azure-mgmt-managementgroups==0.1.0
77
- Requires-Dist: azure-mgmt-managementpartner==0.1.1
78
- Requires-Dist: azure-mgmt-maps==0.1.0
79
- Requires-Dist: azure-mgmt-marketplaceordering==0.1.0
80
- Requires-Dist: azure-mgmt-media==1.0.1
81
- Requires-Dist: azure-mgmt-monitor==0.5.2
82
- Requires-Dist: azure-mgmt-msi==0.2.0
83
- Requires-Dist: azure-mgmt-network==2.7.0
84
- Requires-Dist: azure-mgmt-notificationhubs==2.1.0
85
- Requires-Dist: azure-mgmt-nspkg==3.0.2
86
- Requires-Dist: azure-mgmt-policyinsights==0.1.0
87
- Requires-Dist: azure-mgmt-powerbiembedded==2.0.0
88
- Requires-Dist: azure-mgmt-rdbms==1.9.0
89
- Requires-Dist: azure-mgmt-recoveryservices==0.3.0
90
- Requires-Dist: azure-mgmt-recoveryservicesbackup==0.3.0
91
- Requires-Dist: azure-mgmt-redis==5.0.0
92
- Requires-Dist: azure-mgmt-relay==0.1.0
93
- Requires-Dist: azure-mgmt-reservations==0.2.1
94
- Requires-Dist: azure-mgmt-resource==2.2.0
95
- Requires-Dist: azure-mgmt-scheduler==2.0.0
96
- Requires-Dist: azure-mgmt-search==2.1.0
97
- Requires-Dist: azure-mgmt-servicebus==0.5.3
98
- Requires-Dist: azure-mgmt-servicefabric==0.2.0
99
- Requires-Dist: azure-mgmt-signalr==0.1.1
100
- Requires-Dist: azure-mgmt-sql==0.9.1
101
- Requires-Dist: azure-mgmt-storage==2.0.0
102
- Requires-Dist: azure-mgmt-subscription==0.2.0
103
- Requires-Dist: azure-mgmt-trafficmanager==0.50.0
104
- Requires-Dist: azure-mgmt-web==0.35.0
105
- Requires-Dist: azure-nspkg==3.0.2
106
- Requires-Dist: azure-servicebus==0.21.1
107
- Requires-Dist: azure-servicefabric==6.3.0.0
108
- Requires-Dist: azure-servicemanagement-legacy==0.20.8
109
- Requires-Dist: azure-storage-blob==1.5.0
110
- Requires-Dist: azure-storage-common==1.4.2
111
- Requires-Dist: azure-storage-file==1.4.0
112
- Requires-Dist: azure-storage-queue==1.4.0
113
- Requires-Dist: boto3==1.40.30; python_version >= "3.9"
114
- Requires-Dist: botocore==1.40.30; python_version >= "3.9"
115
- Requires-Dist: certifi==2026.1.4; python_version >= "3.7"
116
- Requires-Dist: cffi==2.0.0; python_version >= "3.9"
117
- Requires-Dist: charset-normalizer==3.4.4; python_version >= "3.7"
118
- Requires-Dist: colorama==0.4.6; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6"
119
- Requires-Dist: cryptography==46.0.4; python_version >= "3.8" and python_full_version not in "3.9.0, 3.9.1"
26
+ Requires-Dist: ansible==11.13.0; python_version >= "3.11"
27
+ Requires-Dist: ansible-core==2.18.20; python_version >= "3.11"
28
+ Requires-Dist: awscli==1.45.36; python_version >= "3.10"
29
+ Requires-Dist: azure-core==1.41.0; python_version >= "3.10"
30
+ Requires-Dist: azure-identity==1.25.3; python_version >= "3.9"
31
+ Requires-Dist: azure-mgmt-compute==38.1.0; python_version >= "3.10"
32
+ Requires-Dist: azure-mgmt-core==1.6.0; python_version >= "3.9"
33
+ Requires-Dist: azure-mgmt-network==30.2.0; python_version >= "3.9"
34
+ Requires-Dist: azure-mgmt-resource==26.0.0; python_version >= "3.10"
35
+ Requires-Dist: boto3==1.43.36; python_version >= "3.10"
36
+ Requires-Dist: botocore==1.43.36; python_version >= "3.10"
37
+ Requires-Dist: certifi==2026.11.20; python_version >= "3.7"
38
+ Requires-Dist: cffi==2.1.1; python_version >= "3.10"
39
+ Requires-Dist: charset-normalizer==3.5.3; python_version >= "3.7"
40
+ Requires-Dist: colorama==0.4.6; python_version >= "2.7" and python_version != "3.0" and python_version != "3.1" and python_version != "3.2" and python_version != "3.3" and python_version != "3.4" and python_version != "3.5" and python_version != "3.6"
41
+ Requires-Dist: cryptography==50.0.2; python_version >= "3.9" and python_full_version != "3.9.0" and python_full_version != "3.9.1"
120
42
  Requires-Dist: deepmerge==2.0; python_version >= "3.8"
121
43
  Requires-Dist: docutils==0.19; python_version >= "3.7"
122
- Requires-Dist: durationpy==0.10
123
44
  Requires-Dist: gitdb==4.0.12; python_version >= "3.7"
124
- Requires-Dist: gitpython==3.1.46; python_version >= "3.7"
125
- Requires-Dist: google-auth==2.48.0; python_version >= "3.8"
45
+ Requires-Dist: gitpython==3.1.62; python_version >= "3.7"
126
46
  Requires-Dist: hashmerge==0.2
127
- Requires-Dist: himl==0.18.0; python_version >= "3.9"
128
- Requires-Dist: hvac==1.2.1; python_full_version >= "3.6.2" and python_full_version < "4.0.0"
129
- Requires-Dist: idna==3.11; python_version >= "3.8"
47
+ Requires-Dist: himl==0.20.0; python_version >= "3.10"
48
+ Requires-Dist: hvac==2.4.0; python_version >= "3.8" and python_version < "4.0"
49
+ Requires-Dist: idna==3.20; python_version >= "3.9"
130
50
  Requires-Dist: inflection==0.5.1; python_version >= "3.5"
131
51
  Requires-Dist: isodate==0.7.2; python_version >= "3.7"
132
52
  Requires-Dist: jinja2==3.1.6; python_version >= "3.7"
133
53
  Requires-Dist: jmespath==1.1.0; python_version >= "3.9"
134
- Requires-Dist: kubernetes==33.1.0; python_version >= "3.6"
135
- Requires-Dist: markupsafe==3.0.3; python_version >= "3.9"
136
- Requires-Dist: msal==1.34.0; python_version >= "3.8"
137
- Requires-Dist: msrest==0.7.1; python_version >= "3.6"
138
- Requires-Dist: msrestazure==0.6.4
139
- Requires-Dist: oauthlib==3.3.1; python_version >= "3.8"
140
- Requires-Dist: packaging==26.0; python_version >= "3.8"
54
+ Requires-Dist: markupsafe==3.0.4; python_version >= "3.9"
55
+ Requires-Dist: msal==1.39.0; python_version >= "3.9"
56
+ Requires-Dist: msal-extensions==1.3.1; python_version >= "3.9"
57
+ Requires-Dist: packaging==26.2; python_version >= "3.8"
141
58
  Requires-Dist: passgen==1.1.1
142
59
  Requires-Dist: pathlib2==2.3.7.post1
143
- Requires-Dist: pyasn1==0.6.2; python_version >= "3.8"
144
- Requires-Dist: pyasn1-modules==0.4.2; python_version >= "3.8"
145
- Requires-Dist: pycparser==3.0; python_version >= "3.10"
146
- Requires-Dist: pyhcl==0.4.5
147
- Requires-Dist: pyjwt[crypto]==2.11.0; python_version >= "3.9"
148
- Requires-Dist: python-consul==1.1.0
149
- Requires-Dist: python-dateutil==2.9.0.post0; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2"
150
- Requires-Dist: pyyaml==6.0.1; python_version >= "3.6"
151
- Requires-Dist: requests==2.32.5; python_version >= "3.9"
152
- Requires-Dist: requests-oauthlib==2.0.0; python_version >= "3.4"
60
+ Requires-Dist: py-consul==1.7.1; python_version >= "3.10"
61
+ Requires-Dist: pyasn1==0.6.5; python_version >= "3.8"
62
+ Requires-Dist: pycparser==3.12; python_version >= "3.11"
63
+ Requires-Dist: pyjwt[crypto]==2.15.1; python_version >= "3.9"
64
+ Requires-Dist: python-dateutil==2.9.0.post0; python_version >= "2.7" and python_version != "3.0" and python_version != "3.1" and python_version != "3.2"
65
+ Requires-Dist: pyyaml==6.0.3; python_version >= "3.8"
66
+ Requires-Dist: requests==2.34.2; python_version >= "3.10"
153
67
  Requires-Dist: resolvelib==1.0.1
154
68
  Requires-Dist: rsa==4.7.2; python_version >= "3.5" and python_version < "4"
155
- Requires-Dist: s3transfer==0.14.0; python_version >= "3.9"
69
+ Requires-Dist: s3transfer==0.19.3; python_version >= "3.10"
156
70
  Requires-Dist: simpledi==0.4.1
157
- Requires-Dist: six==1.17.0; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2"
158
- Requires-Dist: smmap==5.0.2; python_version >= "3.7"
159
- Requires-Dist: typing-extensions==4.15.0; python_version >= "3.9"
160
- Requires-Dist: urllib3==2.6.0; python_version >= "3.9"
161
- Requires-Dist: websocket-client==1.9.0; python_version >= "3.9"
71
+ Requires-Dist: six==1.17.0; python_version >= "2.7" and python_version != "3.0" and python_version != "3.1" and python_version != "3.2"
72
+ Requires-Dist: smmap==5.0.3; python_version >= "3.7"
73
+ Requires-Dist: typing-extensions==4.16.0; python_version >= "3.9"
74
+ Requires-Dist: urllib3==2.7.0; python_version >= "3.10"
162
75
  Dynamic: author
163
76
  Dynamic: author-email
164
77
  Dynamic: classifier
@@ -324,7 +237,7 @@ workon ops
324
237
  # uninstall previous `ops` version (if you have it)
325
238
  pip uninstall ops --yes
326
239
 
327
- # install ops-cli v2.4.1 stable release
240
+ # install ops-cli v2.5.1 stable release
328
241
  pip install --upgrade ops-cli
329
242
  ```
330
243
 
@@ -340,7 +253,7 @@ You can try out `ops-cli`, by using docker. The docker image has all required pr
340
253
 
341
254
  To start out a container, running the latest `ops-cli` docker image run:
342
255
  ```sh
343
- docker run -it ghcr.io/adobe/ops-cli:2.4.1 bash
256
+ docker run -it ghcr.io/adobe/ops-cli:2.5.1 bash
344
257
  ```
345
258
 
346
259
  After the container has started, you can start using `ops-cli`:
@@ -151,7 +151,7 @@ workon ops
151
151
  # uninstall previous `ops` version (if you have it)
152
152
  pip uninstall ops --yes
153
153
 
154
- # install ops-cli v2.4.1 stable release
154
+ # install ops-cli v2.5.1 stable release
155
155
  pip install --upgrade ops-cli
156
156
  ```
157
157
 
@@ -167,7 +167,7 @@ You can try out `ops-cli`, by using docker. The docker image has all required pr
167
167
 
168
168
  To start out a container, running the latest `ops-cli` docker image run:
169
169
  ```sh
170
- docker run -it ghcr.io/adobe/ops-cli:2.4.1 bash
170
+ docker run -it ghcr.io/adobe/ops-cli:2.5.1 bash
171
171
  ```
172
172
 
173
173
  After the container has started, you can start using `ops-cli`:
@@ -0,0 +1,49 @@
1
+ ansible==11.13.0; python_version >= '3.11'
2
+ ansible-core==2.18.20; python_version >= '3.11'
3
+ awscli==1.45.36; python_version >= '3.10'
4
+ azure-core==1.41.0; python_version >= '3.10'
5
+ azure-identity==1.25.3; python_version >= '3.9'
6
+ azure-mgmt-compute==38.1.0; python_version >= '3.10'
7
+ azure-mgmt-core==1.6.0; python_version >= '3.9'
8
+ azure-mgmt-network==30.2.0; python_version >= '3.9'
9
+ azure-mgmt-resource==26.0.0; python_version >= '3.10'
10
+ boto3==1.43.36; python_version >= '3.10'
11
+ botocore==1.43.36; python_version >= '3.10'
12
+ certifi==2026.11.20; python_version >= '3.7'
13
+ cffi==2.1.1; python_version >= '3.10'
14
+ charset-normalizer==3.5.3; python_version >= '3.7'
15
+ colorama==0.4.6; python_version >= '2.7' and python_version != '3.0' and python_version != '3.1' and python_version != '3.2' and python_version != '3.3' and python_version != '3.4' and python_version != '3.5' and python_version != '3.6'
16
+ cryptography==50.0.2; python_version >= '3.9' and python_full_version != '3.9.0' and python_full_version != '3.9.1'
17
+ deepmerge==2.0; python_version >= '3.8'
18
+ docutils==0.19; python_version >= '3.7'
19
+ gitdb==4.0.12; python_version >= '3.7'
20
+ gitpython==3.1.62; python_version >= '3.7'
21
+ hashmerge==0.2
22
+ himl==0.20.0; python_version >= '3.10'
23
+ hvac==2.4.0; python_version >= '3.8' and python_version < '4.0'
24
+ idna==3.20; python_version >= '3.9'
25
+ inflection==0.5.1; python_version >= '3.5'
26
+ isodate==0.7.2; python_version >= '3.7'
27
+ jinja2==3.1.6; python_version >= '3.7'
28
+ jmespath==1.1.0; python_version >= '3.9'
29
+ markupsafe==3.0.4; python_version >= '3.9'
30
+ msal==1.39.0; python_version >= '3.9'
31
+ msal-extensions==1.3.1; python_version >= '3.9'
32
+ packaging==26.2; python_version >= '3.8'
33
+ passgen==1.1.1
34
+ pathlib2==2.3.7.post1
35
+ py-consul==1.7.1; python_version >= '3.10'
36
+ pyasn1==0.6.5; python_version >= '3.8'
37
+ pycparser==3.12; python_version >= '3.11'
38
+ pyjwt[crypto]==2.15.1; python_version >= '3.9'
39
+ python-dateutil==2.9.0.post0; python_version >= '2.7' and python_version != '3.0' and python_version != '3.1' and python_version != '3.2'
40
+ pyyaml==6.0.3; python_version >= '3.8'
41
+ requests==2.34.2; python_version >= '3.10'
42
+ resolvelib==1.0.1
43
+ rsa==4.7.2; python_version >= '3.5' and python_version < '4'
44
+ s3transfer==0.19.3; python_version >= '3.10'
45
+ simpledi==0.4.1
46
+ six==1.17.0; python_version >= '2.7' and python_version != '3.0' and python_version != '3.1' and python_version != '3.2'
47
+ smmap==5.0.3; python_version >= '3.7'
48
+ typing-extensions==4.16.0; python_version >= '3.9'
49
+ urllib3==2.7.0; python_version >= '3.10'
@@ -11,10 +11,7 @@
11
11
  import os
12
12
  import sys
13
13
 
14
- try:
15
- from setuptools import setup, find_packages
16
- except ImportError:
17
- from distutils.core import setup, find_packages
14
+ from setuptools import setup, find_packages
18
15
 
19
16
  with open('README.md') as f:
20
17
  _readme = f.read()
@@ -23,12 +20,12 @@ _mydir = os.path.abspath(os.path.dirname(sys.argv[0]))
23
20
  _requires = [r for r in open(os.path.sep.join((_mydir, 'requirements.txt')), "r").read().split('\n') if len(r) > 1]
24
21
  setup(
25
22
  name='ops-cli',
26
- version='2.4.1',
23
+ version='2.5.1',
27
24
  description='Ops - wrapper for Terraform, Ansible, and SSH for cloud automation',
28
25
  long_description=_readme + '\n\n',
29
26
  long_description_content_type='text/markdown',
30
27
  url='https://github.com/adobe/ops-cli',
31
- python_requires='>=3.5',
28
+ python_requires='>=3.12',
32
29
  author='Adobe',
33
30
  author_email='noreply@adobe.com',
34
31
  license='Apache2',
@@ -39,9 +36,9 @@ setup(
39
36
  'License :: OSI Approved :: Apache Software License',
40
37
  'Operating System :: OS Independent',
41
38
  'Programming Language :: Python :: 3',
42
- 'Programming Language :: Python :: 3.9',
43
- 'Programming Language :: Python :: 3.10',
44
- 'Programming Language :: Python :: 3.11',
39
+ 'Programming Language :: Python :: 3.12',
40
+ 'Programming Language :: Python :: 3.13',
41
+ 'Programming Language :: Python :: 3.14',
45
42
  'Programming Language :: Python :: Implementation :: CPython',
46
43
  'Programming Language :: Python :: Implementation :: PyPy',
47
44
  'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
@@ -8,33 +8,30 @@
8
8
  # OF ANY KIND, either express or implied. See the License for the specific language
9
9
  # governing permissions and limitations under the License.
10
10
 
11
- import pkg_resources
12
11
  import re
13
- from distutils.version import StrictVersion
12
+ from importlib.metadata import version as importlib_version
13
+ from packaging.version import Version
14
14
  from subprocess import call, Popen, PIPE
15
15
 
16
- from six import PY3
17
-
18
16
  from .cli import display
19
17
 
20
18
 
21
19
  def validate_ops_version(min_ops_version):
22
- current_ops_version = [
23
- x.version for x in pkg_resources.working_set if x.project_name == "ops-cli"][0]
24
- if StrictVersion(current_ops_version) < StrictVersion(min_ops_version):
20
+ current_ops_version = importlib_version('ops-cli')
21
+ if Version(current_ops_version) < Version(min_ops_version):
25
22
  raise Exception("The current ops version {0} is lower than the minimum required version {1}. "
26
23
  "Please upgrade by following the instructions seen here: "
27
24
  "https://github.com/adobe/ops-cli#installing".format(current_ops_version, min_ops_version))
28
25
 
29
26
 
30
- class Executor(object):
27
+ class Executor:
31
28
  """ All cli commands usually return a dict(command=...) that will be executed by this handler"""
32
29
 
33
30
  def __call__(self, result, pass_trough=True, cwd=None):
34
31
  try:
35
32
  return self._execute(result, pass_trough, cwd)
36
33
  except Exception as ex:
37
- display(str(ex) if PY3 else ex.message, stderr=True, color='red')
34
+ display(str(ex), stderr=True, color='red')
38
35
  display(
39
36
  '------- TRACEBACK ----------',
40
37
  stderr=True,
@@ -8,11 +8,8 @@
8
8
  #OF ANY KIND, either express or implied. See the License for the specific language
9
9
  #governing permissions and limitations under the License.
10
10
 
11
- from __future__ import absolute_import
12
11
  import os
13
12
  from ops.cli import display
14
- from six import iteritems
15
-
16
13
 
17
14
  def read_file(fname):
18
15
  if os.path.exists(fname):
@@ -38,7 +35,7 @@ def read_consul(key_path, consul_url="http://localhost:8500", recurse=True, show
38
35
  ret = sc.get(key_path,recurse)
39
36
  except Exception as e:
40
37
  if show_error:
41
- ret['error'] = e.message
38
+ ret['error'] = str(e)
42
39
  return ret
43
40
 
44
41
  def read_envvar(varname, default=None):
@@ -53,7 +50,7 @@ def read_yaml(fname, show_error=False):
53
50
  ret = y.safe_load(f.read())
54
51
  except Exception as e:
55
52
  if show_error:
56
- ret['error'] = e.message
53
+ ret['error'] = str(e)
57
54
  return ret
58
55
 
59
56
  def flatten_tree(d, parent_key='', sep='/'):
@@ -100,7 +97,7 @@ def write_vault(
100
97
  namespace=None, mount_point=None, auto_prompt=auto_prompt)
101
98
  new_data = {}
102
99
  if isinstance(data, dict):
103
- for k,v in iteritems(data):
100
+ for k, v in data.items():
104
101
  new_data[k] = str(v)
105
102
  elif key:
106
103
  new_data[key] = str(data)
@@ -141,7 +138,7 @@ def escape_json(input):
141
138
  return escaped[1:-1]
142
139
  return escaped
143
140
 
144
- class FilterModule(object):
141
+ class FilterModule:
145
142
 
146
143
  def filters(self):
147
144
  return {
@@ -25,7 +25,7 @@ class VarsModule(BaseVarsPlugin):
25
25
  def __init__(self, *args):
26
26
  """ constructor """
27
27
 
28
- super(VarsModule, self).__init__(*args)
28
+ super().__init__(*args)
29
29
 
30
30
  logger.debug("Running plugin: %s with cluster config %s" % (__file__, os.environ['OPS_CLUSTER_CONFIG']))
31
31
 
@@ -33,5 +33,5 @@ class VarsModule(BaseVarsPlugin):
33
33
  self.config = app.cluster_config.all()
34
34
 
35
35
  def get_vars(self, loader, path, entities, cache=True):
36
- super(VarsModule, self).get_vars(loader, path, entities)
36
+ super().get_vars(loader, path, entities)
37
37
  return self.config
@@ -25,7 +25,7 @@ class VarsModule(BaseVarsPlugin):
25
25
  def __init__(self, *args):
26
26
  """ constructor """
27
27
 
28
- super(VarsModule, self).__init__(*args)
28
+ super().__init__(*args)
29
29
 
30
30
  logger.debug("Running plugin: %s with cluster config %s" % (__file__, os.environ['OPS_CLUSTER_CONFIG']))
31
31
 
@@ -37,5 +37,5 @@ class VarsModule(BaseVarsPlugin):
37
37
  })
38
38
 
39
39
  def get_vars(self, loader, path, entities, cache=True):
40
- super(VarsModule, self).get_vars(loader, path, entities)
40
+ super().get_vars(loader, path, entities)
41
41
  return self.config
@@ -40,7 +40,7 @@ def get_config_value(config, key):
40
40
  return config[key]
41
41
  except KeyError as e:
42
42
  err("You must set the %s value in %s.yaml or in the cli as an extra variable: -e %s=value" %
43
- (e.message, config['cluster'], e.message))
43
+ (str(e), config['cluster'], str(e)))
44
44
  sys.exit(1)
45
45
 
46
46
  def check_if_teleport_binary_installed():
@@ -67,7 +67,7 @@ def load_extra_vars(loader):
67
67
  return extra_vars
68
68
 
69
69
 
70
- class ClusterConfig(object):
70
+ class ClusterConfig:
71
71
  def __init__(self, cluster_config_generator,
72
72
  ops_config, cluster_config_path):
73
73
  """
@@ -130,7 +130,7 @@ class ClusterConfig(object):
130
130
  self.has_ssh_keys = False
131
131
 
132
132
 
133
- class JinjaConfigGenerator(object):
133
+ class JinjaConfigGenerator:
134
134
  def __init__(self, console_args, cluster_config_path, template):
135
135
  self.cluster_config_path = cluster_config_path
136
136
  self.console_args = console_args
@@ -162,7 +162,7 @@ class JinjaConfigGenerator(object):
162
162
  return yaml.safe_load(rendered)
163
163
 
164
164
 
165
- class ClusterConfigGenerator(object):
165
+ class ClusterConfigGenerator:
166
166
  def __init__(self, console_args, cluster_config_path, template):
167
167
  self.template = template
168
168
  self.cluster_config_path = cluster_config_path
@@ -32,7 +32,7 @@ class ConfigGeneratorParserConfig(SubParserConfig):
32
32
  '''
33
33
 
34
34
 
35
- class ConfigGeneratorRunner(object):
35
+ class ConfigGeneratorRunner:
36
36
  def __init__(self, cluster_config_path):
37
37
  self.cluster_config_path = cluster_config_path
38
38
 
@@ -49,9 +49,9 @@ class HelmfileParserConfig(SubParserConfig):
49
49
  '''
50
50
 
51
51
 
52
- class HelmfileRunner(CompositionConfigGenerator, object):
52
+ class HelmfileRunner(CompositionConfigGenerator):
53
53
  def __init__(self, ops_config, cluster_config_path, execute):
54
- super(HelmfileRunner, self).__init__(["helmfiles"])
54
+ super().__init__(["helmfiles"])
55
55
  logging.basicConfig(level=logging.INFO)
56
56
  self.ops_config = ops_config
57
57
  self.cluster_config_path = cluster_config_path
@@ -39,7 +39,7 @@ class InventoryParserConfig(SubParserConfig):
39
39
  return parser
40
40
 
41
41
 
42
- class InventoryRunner(object):
42
+ class InventoryRunner:
43
43
  def __init__(self, ansible_inventory, cluster_name):
44
44
  """
45
45
  :type ansible_inventory: ops.inventory.generator.AnsibleInventory
@@ -36,7 +36,7 @@ class PackerParserConfig(SubParserConfig):
36
36
  '''
37
37
 
38
38
 
39
- class PackerRunner(object):
39
+ class PackerRunner:
40
40
  def __init__(self, root_dir, cluster_config):
41
41
  self.cluster_config = cluster_config
42
42
  self.root_dir = root_dir
@@ -10,12 +10,8 @@
10
10
 
11
11
  import argparse
12
12
 
13
- import sys
14
13
 
15
- from six import PY3
16
-
17
-
18
- class RootParser(object):
14
+ class RootParser:
19
15
  def __init__(self, sub_parsers=None):
20
16
  """
21
17
  :type sub_parsers: list[SubParserConfig]
@@ -52,35 +48,14 @@ class RootParser(object):
52
48
 
53
49
  return parser
54
50
 
55
- @staticmethod
56
- def _check_args_for_unicode(args):
57
- if args is None:
58
- args = sys.argv
59
-
60
- try:
61
- for value in args:
62
- if not PY3 and isinstance(value, unicode):
63
- # Python3 or some Python3 compatibility mode can make
64
- # arguments to be unicode, not str
65
- value.encode('utf-8').encode('utf-8')
66
- # Python 2 str, check if it can be represented in utf8
67
- elif isinstance(value, str):
68
- value.encode('utf-8')
69
- except UnicodeDecodeError as e:
70
- print('Invalid character in argument "{0}", most likely an "en dash", replace it with normal dash -'.format(
71
- e.args[1]))
72
- raise
73
-
74
51
  def parse_args(self, args=None):
75
- RootParser._check_args_for_unicode(args)
76
52
  return self._get_parser().parse_args(args)
77
53
 
78
54
  def parse_known_args(self, args=None):
79
- RootParser._check_args_for_unicode(args)
80
55
  return self._get_parser().parse_known_args(args)
81
56
 
82
57
 
83
- class SubParserConfig(object):
58
+ class SubParserConfig:
84
59
  def get_name(self):
85
60
  pass
86
61
 
@@ -57,7 +57,7 @@ class PlaybookParserConfig(SubParserConfig):
57
57
  return 'Run an Ansible playbook'
58
58
 
59
59
 
60
- class PlaybookRunner(object):
60
+ class PlaybookRunner:
61
61
  def __init__(self, ops_config, root_dir, inventory_generator,
62
62
  cluster_config_path, cluster_config):
63
63
  """
@@ -53,7 +53,7 @@ class CommandParserConfig(SubParserConfig):
53
53
  return 'run'
54
54
 
55
55
 
56
- class CommandRunner(object):
56
+ class CommandRunner:
57
57
 
58
58
  def __init__(self, ops_config, root_dir, inventory_generator,
59
59
  cluster_config_path, cluster_config):
@@ -151,7 +151,7 @@ class SshParserConfig(SubParserConfig):
151
151
  '''
152
152
 
153
153
 
154
- class SshRunner(object):
154
+ class SshRunner:
155
155
 
156
156
  def __init__(self, cluster_config_path, cluster_config,
157
157
  ansible_inventory, ops_config, cluster_name, root_dir):
@@ -444,7 +444,7 @@ class SshRunner(object):
444
444
 
445
445
 
446
446
 
447
- class SshConfig(object):
447
+ class SshConfig:
448
448
  def __init__(self, scb_enabled, teleport_enabled, ssh_config_prop, ssh_user, ssh_host, ssh_host_dest,
449
449
  ssh_host_bastion, scb_host, scb_ssh_host, host, scb_proxy_port):
450
450
  self.scb_enabled = scb_enabled
@@ -64,7 +64,7 @@ class SyncParserConfig(SubParserConfig):
64
64
  """
65
65
 
66
66
 
67
- class SyncRunner(object):
67
+ class SyncRunner:
68
68
 
69
69
  def __init__(self, cluster_config, root_dir,
70
70
  ansible_inventory, inventory_generator, ops_config):
@@ -159,7 +159,7 @@ class SyncRunner(object):
159
159
  def is_teleport_enabled(self, args):
160
160
  return True if self.cluster_config.get('teleport', {}).get('enabled') and args.use_teleport else False
161
161
 
162
- class PathExpr(object):
162
+ class PathExpr:
163
163
 
164
164
  def __init__(self, path):
165
165
  self._path = path