f5devcentral / f5-puppet

Puppet modules for F5 BIG-IP
Apache License 2.0
13 stars 27 forks source link

Unable to create new f5_sslkey or f5_sslcertificate due to missing /tmp/*** directory structure #38

Open jcwarp opened 6 years ago

jcwarp commented 6 years ago

Error: Could not set 'present' on ensure: REST failure: HTTP status code 400 detected. Body of failure is: {"code":400,"message":"Unable to copy (/etc/ssl/certs/company.com.chain) into tempfile (/var/system/tmp/tmsh/5WhAFq/company.com.chain), No such file or directory","errorStack":[],"apiError":26214401} at /etc/puppetlabs/code/environments/production/site/dm/manifests/f5_config.pp:62 Error: Could not set 'present' on ensure: REST failure: HTTP status code 400 detected. Body of failure is: {"code":400,"message":"Unable to copy (/etc/ssl/certs/company.com.chain) into tempfile (/var/system/tmp/tmsh/5WhAFq/company.com.chain), No such file or directory","errorStack":[],"apiError":26214401} at /etc/puppetlabs/code/environments/production/site/dm/manifests/f5_config.pp:62 Wrapped exception: REST failure: HTTP status code 400 detected. Body of failure is: {"code":400,"message":"Unable to copy (/etc/ssl/certs/company.com.chain) into tempfile (/var/system/tmp/tmsh/5WhAFq/company.com.chain), No such file or directory","errorStack":[],"apiError":26214401}

scshitole commented 5 years ago

@jcwarp just checking you were trying to use

f5_sslcertificate { '/Common/sslcertificate':
    certificate_name  => "test",
    from_local_file => "/var/tmp/test.crt",
}
jcwarp commented 5 years ago

Yes, that is basically it.

frankmundt commented 5 years ago

I am getting the same error and I'm using version 1.9.0 of the puppet module.

frankmundt commented 5 years ago

What is the minimum version of the F5 that is needed to support the SSL Key and Certificate upload?