salt: Ansible dynamic inventory doesn't support the default format from ansible nova.py

The dict it outputs by default is:

{u'mt5-ansvc': {u'hosts': [u'10.128.40.34'],
                u'vars': {u'deploy_env': u'5',
                          u'group_env': u'mt5',
                          u'role': u'ansvc'}},
 u'mt5-anweb': {u'hosts': [u'10.128.40.40'],
                u'vars': {u'deploy_env': u'5',
                          u'group_env': u'mt5',
                          u'role': u'anweb'}},
 u'mt5-asyncjobs': {u'hosts': [u'10.128.40.36'],
                    u'vars': {u'deploy_env': u'5',
                              u'group_env': u'mt5',
                              u'role': u'asyncjobs'}},
 u'mt5-collectsvc': {u'hosts': [u'10.128.40.41'],
                     u'vars': {u'deploy_env': u'5',
                               u'group_env': u'mt5',
                               u'role': u'collectsvc'}},
 u'mt5-jobsvc': {u'hosts': [u'10.128.40.35'],
                 u'vars': {u'deploy_env': u'5',
                           u'group_env': u'mt5',
                           u'role': u'jobsvc'}},
 u'mt5-profilesvc': {u'hosts': [u'10.128.40.38'],
                     u'vars': {u'deploy_env': u'5',
                               u'group_env': u'mt5',
                               u'role': u'profilesvc'}},
 u'mt5-profileweb': {u'hosts': [u'10.128.40.42'],
                     u'vars': {u'deploy_env': u'5',
                               u'group_env': u'mt5',
                               u'role': u'profileweb'}},
 u'mt5-redis': {u'hosts': [u'10.128.40.37'],
                u'vars': {u'deploy_env': u'5',
                          u'group_env': u'mt5',
                          u'role': u'redis'}},
 u'mt5-responseweb': {u'hosts': [u'10.128.40.43'],
                      u'vars': {u'deploy_env': u'5',
                                u'group_env': u'mt5',
                                u'role': u'responseweb'}},
 u'mt5-svysvc': {u'hosts': [u'10.128.40.39'],
                 u'vars': {u'deploy_env': u'5',
                           u'group_env': u'mt5',
                           u'role': u'svysvc'}},
 u'sontek': {u'hosts': [u'10.128.40.48',
                        u'10.128.40.47',
                        u'10.128.40.46',
                        u'10.128.40.45',
                        u'10.128.40.44'],
             u'vars': {}},
 u'undefined': {u'hosts': [u'10.128.40.33'], u'vars': {}}}

This works in ansible but not the salt ansible roster plugin.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments