saltstack/salt — pull request #8089 by l2ol33rt (2013-10-25 01:28:19+00:00)
Title: Unified return output, added private key return output, and added missing examples across module

Couple fixes in this pull request:

1. Output returned after creating a certificate was not concise or standardized across functions. Mainly removed the ", certificate located at" in favor of a colon. Also private key creation output was not outputted back to the user upon creation. Example:
Output before changes when creating a CA (Notice: No private key data):
```bash
prod-saltmaster.example.com:
Created CA "saltmaster", certificate is located at "/etc/pki/saltmaster/saltmaster_ca_cert.crt"
```
Output after changes when creating a CA:
```bash
prod-saltmaster.example.com:
Created Private Key: "/etc/pki/test/saltmaster/saltmaster_ca_cert.key." Created CA "saltmaster": "/etc/pki/saltmaster/saltmaster_ca_cert.crt."
```

2. Multiple fixes and added missing examples for functions:
Fixing path in examples:
```bash
If the following values were set::

ca.cert_base_path='/etc/pki/koji'
ca_name='koji'

the resulting CA would be written in the following location::

/etc/pki/koji/koji_ca_cert.crt
```
This actually results in:
```bash
prod-saltmaster.example.com:
Created Private Key: "/etc/pki/koji/koji/koji_ca_cert.key." Created CA "koji": "/etc/pki/koji/koji/koji_ca_cert.crt."
```
So I modified the example and removed koji from ca.cert_base_path:
```bash
If the following values were set::

ca.cert_base_path='/etc/pki'
```
Now results in expect value:
```bash
prod-saltmaster.example.com:
Created Private Key: "/etc/pki/koji/koji_ca_cert.key." Created CA "koji": "/etc/pki/koji/koji_ca_cert.crt."
```

~Rob