Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host read ENC information #455

Merged
merged 1 commit into from
Nov 17, 2017
Merged

Conversation

ldjebran
Copy link
Contributor

In[2]: from nailgun.config import ServerConfig
In[3]: from nailgun import entities 
In[4]: conf = ServerConfig(url='https://XXXXXXXXXXXXXXXXXXX', auth=('XXX', 'XXX'), verify=False)
In[5]: org = entities.Organization(server_config=conf)
In[6]: org.create_missing()
In[7]: org = org.create()
In[8]: host = entities.Host(conf, organization=org)
In[9]: host.create_missing()
In[10]: host = host.create()
In[11]: host_enc = host.enc()
In[12]: host_enc
Out[12]: 
{u'data': {u'classes': {},
  u'environment': u'i3MPBuq5OQ',
  u'parameters': {u'content_view': None,
   u'content_view_info': {u'components': {},
    u'label': None,
    u'latest-version': None,
    u'published': None,
    u'version': None},
   u'domainname': u'6wx8mer5qj',
   u'foreman_config_groups': [],
   u'foreman_env': u'i3MPBuq5OQ',
   u'foreman_host_collections': [],
   u'foreman_interfaces': [{u'attached_to': None,
     u'attrs': {},
     u'identifier': None,
     u'ip': None,
     u'ip6': None,
     u'link': True,
     u'mac': u'8e:93:b9:15:15:b0',
     u'managed': True,
     u'name': u'xriqwdn.6wx8mer5qj',
     u'primary': True,
     u'provision': True,
     u'subnet': None,
     u'subnet6': None,
     u'tag': None,
     u'type': u'Interface',
     u'virtual': False}],
   u'foreman_subnets': [],
   u'foreman_users': {u'admin': {u'description': None,
     u'firstname': u'Admin',
     u'fullname': u'Admin User',
     u'lastname': u'User',
     u'mail': u'root@XXXXXXXXXXXXXXXX',
     u'name': u'admin',
     u'ssh_authorized_keys': []}},
   u'kt_cv': None,
   u'kt_env': None,
   u'lifecycle_environment': None,
   u'location': u'FCYmFGoZhTg',
   u'location_title': u'FCYmFGoZhTg',
   u'organization': u'WLPLAVxrCQtN',
   u'organization_title': u'WLPLAVxrCQtN',
   u'owner_email': u'root@XXXXXXXXXXX',
   u'owner_name': u'Admin User',
   u'puppetmaster': u'',
   u'remote_execution_connect_by_ip': True,
   u'remote_execution_effective_user_method': u'sudo',
   u'remote_execution_ssh_user': u'root',
   u'root_pw': u'$5$fvgnU8dN$ZaVlJ4rJx8IkTz6.OMTnppMkRHcrzSyR5oWxVwCKwd4',
   u'ssh_authorized_keys': []}}}

@ldjebran ldjebran self-assigned this Nov 14, 2017
@coveralls
Copy link

coveralls commented Nov 14, 2017

Coverage Status

Coverage decreased (-0.2%) to 98.479% when pulling 3f2cd2f on ldjebran:host_enc_info into 1a42807 on SatelliteQE:master.

@coveralls
Copy link

coveralls commented Nov 14, 2017

Coverage Status

Coverage increased (+0.003%) to 98.658% when pulling 0ee20ba on ldjebran:host_enc_info into 1a42807 on SatelliteQE:master.

@ldjebran ldjebran changed the title Host ENC information Host read ENC information Nov 14, 2017
Copy link
Contributor

@oshtaier oshtaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Copy link
Contributor

@abalakh abalakh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@abalakh abalakh merged commit 1b3b1f3 into SatelliteQE:master Nov 17, 2017
lpramuk pushed a commit to lpramuk/nailgun that referenced this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants