When the ``static`` option was used outside the context of the ``batch`` option
the output would appear thusly:
```bash
salt -s 'seed*ord' test.ping --out json
```
```json
{
"seed-02.pgsql.revsys.000.lab.rackspace.ord": true,
"seed-01.pgsql.revsys.000.lab.rackspace.ord": true,
"seed-03.pgsql.revsys.000.lab.rackspace.ord": true
}
{
"seed-03.pgsql.revsys.000.lab.rackspace.ord": true
}
{
"seed-02.pgsql.revsys.000.lab.rackspace.ord": true
}
{
"seed-01.pgsql.revsys.000.lab.rackspace.ord": true
}
```
Using the default outputter results in minion responses being displayed twice.
If it is used with the ``batch`` option, it Does The Right Thing. Since
``batch`` needs logic to take care of the presense of ``static``, it made
sense to me to remove the `if options.static:` bits from the else half
of the `if options.batch:`, extending it to `if options.batch or
options.static:` and adding
`if not options.batch: self.config['batch'] = '100%'` to make cli.batch.Batch()
happy.
* Fix the configuration path for FreeBSD. #567/#552. Thanks Ronald van Zantvoort(The-Loeki).
* Fix non grouping support in POSIX sed. Thanks Ronald van Zantvoort(The-Loeki).
* Add Debian 8 support. Thanks Matt Black(mafrosis)
* Improve Debian version parsing. Thanks Mark Lee(malept)
* Make sure we update packages list one Chris Lea's PPA repository is added.
* Hard code the Debian Squeeze backports to the DE mirror since the main repository is down. Thanks @panticz. saltstack/salt-bootstrap#589.
* Only install git if not already installed. saltstack/salt-bootstrap#560
* Fix openSUSE 13.2 where we need to pass --replaceflags. Thanks Roman Inflianskas(rominf). saltstack/salt-bootstrap#504.
* Make sure that a recent enough requests package is installed in Debian/Ubuntu.
* Install tornado on git installs for the develop branch if necessary. saltstack/salt-bootstrap#580
* Add support for Ubuntu 15.04
When creating new LXC container with help of salt-cloud lxc.init crashes
with similar message:
[INFO ] Creating container(s) '['test-host']' on host 'lxc-host'
[ERROR ] Failed to create VM test-host. Configuration value 'test-host' needs to be set
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1193, in create
output = self.clouds[func](vm_)
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/lxc.py", line 424, in create
cret = _runner().cmd('lxc.cloud_init', [vm_['name']], kwarg=kwarg)
File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 123, in cmd
return self.functions[fun](*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/runners/lxc.py", line 355, in cloud_init
saltcloud_mode=True, quiet=quiet, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/runners/lxc.py", line 257, in init
kw['seed'] = seeds[name]
KeyError: 'test-host'
The reason is that salt-cloud always passes generated keys to lxc.init,
it skips seeds dictionary population and errors out trying to lookup
non-existent key.
Fix this by using fallback value of True because we always want to seed
minion in such case.