"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "salt/states/x509.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

x509.py  (salt-2019.2.0):x509.py  (salt-2019.2.1)
skipping to change at line 284 skipping to change at line 284
The jinja templating in this example ensures a private key is generated if t he file doesn't exist The jinja templating in this example ensures a private key is generated if t he file doesn't exist
and that a new private key is generated whenever the certificate that uses i t is to be renewed. and that a new private key is generated whenever the certificate that uses i t is to be renewed.
.. code-block:: jinja .. code-block:: jinja
/etc/pki/www.key: /etc/pki/www.key:
x509.private_key_managed: x509.private_key_managed:
- bits: 4096 - bits: 4096
- new: True - new: True
{% if salt['file.file_exists']('/etc/pki/ca.key') -%} {% if salt['file.file_exists']('/etc/pki/www.key') -%}
- prereq: - prereq:
- x509: /etc/pki/www.crt - x509: /etc/pki/www.crt
{%- endif %} {%- endif %}
''' '''
file_args, kwargs = _get_file_args(name, **kwargs) file_args, kwargs = _get_file_args(name, **kwargs)
new_key = False new_key = False
if _check_private_key( if _check_private_key(
name, bits=bits, passphrase=passphrase, new=new, overwrite=overwrite ): name, bits=bits, passphrase=passphrase, new=new, overwrite=overwrite ):
file_args['contents'] = __salt__['x509.get_pem_entry']( file_args['contents'] = __salt__['x509.get_pem_entry'](
name, pem_type='RSA PRIVATE KEY') name, pem_type='RSA PRIVATE KEY')
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)