Skip to content

Commit

Permalink
adding more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arykalin committed Nov 15, 2019
1 parent 4086589 commit b01c502
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ venv
venv27
.venv37
venafi_certificate_*.json
tpp_credentials.yml
cloud_credentials.yml
fake_credentials.yml
*_credentials.yml
credentials.yml
vault-password.txt
tests/library
Expand Down
33 changes: 33 additions & 0 deletions tests/jeremy-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
- hosts: localhost
roles:
- role: ansible-role-venafi
#certificate_common_name: "{{ ansible_fqdn }}.jeremy-test.venafi.com"
certificate_common_name: "ansible-test.se.venafi.com"
certificate_cert_dir: "/tmp/etc/ssl/{{ certificate_common_name }}"

certificate_alt_name: "IP:192.168.1.1,DNS:san-example.se.com"
#certificate_alt_name: "IP:192.168.1.1,DNS:www.venafi.example.com,DNS:m.venafi.example.com,email:e@venafi.com,email:e2@venafi.com,IP Address:192.168.2.2"

certificate_privatekey_type: "RSA"
certificate_privatekey_size: "2048"
#certificate_privatekey_curve: "P251"
#certificate_privatekey_passphrase: "password"
#certificate_chain_option: "last"
certificate_before_expired_hours: 2156

#certificate_cert_dir: "/etc/ssl/{{ certificate_common_name }}"
certificate_cert_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.pem"
certificate_chain_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.chain.pem"
certificate_privatekey_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.key"
#certificate_csr_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.csr"

# Where to execute venafi_certificate module. If set to false, certificate will be
# created on Ansible master host and then copied to the remote server.
#certificate_remote_execution: false
# Remote location where to place the certificate.
#certificate_remote_cert_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.pem"
#certificate_remote_chain_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.chain.pem"
#certificate_remote_privatekey_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.key"
# Set to false if you don't want to copy private key to remote location.
#certificate_copy_private_key_to_remote: true

0 comments on commit b01c502

Please sign in to comment.