[foreman-users] Re: foreman + ansible integration not working properly + no facts+ not able to execute role in dashboard

2017-08-03 Thread shyam sundar Keshari
Hi friends ,

kindly suggest to make it working foreman 1.15 with latest ansible 2.3 
using call_back .

Thanks in Advance 

Shyam Keshri 

On Thursday, August 3, 2017 at 2:49:41 PM UTC+5:30, shyam sundar Keshari 
wrote:
>
> Hi friends:
>
> I am trying to integrate Foreman with Ansible but not able to make it 
> working :
>
> Version details :
>
> Ansible :  -->>  ansible 2.3.1.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = Default w/o overrides
>   python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 
> 20150623 (Red Hat 4.8.5-11)]
>
> foreman dashboard version : 1.15.2  
>
> I have followed the official URL to integrate Foreman with Ansible .
>
> But i am not able to make it work .
>
> Issue :
>
> 1.>NO facts coming 
> 2.>When i set password in Foreman for root user in Ansible tab ,and then 
> able to execute playbook in role .
>
>
> Kindly update what are more changes I need to make at ansible and foreman 
> end to make it work .
>
> If anyone done this ,it will be grt you like to share it .
>
> Thanks in Advance :
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] Re: Ansible host setup failing to populate hosts in Foreman

2017-08-03 Thread shyam sundar Keshari
Hi friends ,

Me too trying to setup foreman latest 1.15 with ansible latest 2.3 ,but 
always getting one or other error .

It seems foreman doc missing something .

Kindly update if any done this ,and what are steps need to be followed or 
changes we need to make at foreman dashboard too .

Thanks in Advance 

With Regards :

Shyam Keshri 

On Thursday, April 20, 2017 at 12:27:40 AM UTC+5:30, J Webb wrote:
>
> Greetings,
>
> I have been unable to add hosts using "ansible -m setup hostname".
>
> I have recently installed Foreman 1.14.3 with the Katello scenario and the 
> Ansible plugin v 2.2.1.0 using "foreman-installer --scenario=katello 
> --enable-foreman-plugin-ansible".  Everything seems to be working fine 
> except for no hosts are showing up using Ansible.  
>
> I have successfully run a playbook on this host and followed these 
> instructions:  
> https://theforeman.org/plugins/foreman_ansible/1.x/index.html
>
> Here are the relevant config changes:
>
> /usr/lib/python2.7/site-packages/ansible/plugins/callback/foreman.py:
>
>FOREMAN_URL = os.getenv('FOREMAN_URL', "https://localhost";)
>  
> /etc/ansible/ansible.cfg:
>[defaults]
>callback_whitelist = foreman
> ...
>callback_plugins   = 
> /usr/lib/python2.7/site-packages/ansible/plugins/callback
> ...
>bin_ansible_callbacks = True
>
> The host I'm trying to set up is in trusted_puppetmaster_hosts in Foreman
>
> ignore_puppet_facts_for_provisioning = No
>
> RESULTS:
>
> Running "ansible -m setup hostname" returns no errors, just a lot of 
> system info to stdout.  Here are the foreman production.log entries during 
> the setup:
>
> 2017-04-19 12:53:09 58d05530 [app] [I] Started POST "/api/v2/hosts/facts" 
> for 10.121.66.130 at 2017-04-19 12:53:09 -0500
> 2017-04-19 12:53:09 58d05530 [app] [I] Processing by 
> Api::V2::HostsController#facts as JSON
> 2017-04-19 12:53:09 58d05530 [app] [I]   Parameters: 
> {"facts"=>"[FILTERED]", "name"=>"hostname.domain.com", "apiv"=>"v2", 
> :host=>{"name"=>"hostname.domain.com"}}
> 2017-04-19 12:53:09 58d05530 [audit] [I] [hostname.domain.com] deleted 0 
> (15.0ms)
> 2017-04-19 12:53:10 58d05530 [audit] [I] [hostname.domain.com] updated 18 
> (594.4ms)
> 2017-04-19 12:53:10 58d05530 [audit] [I] [hostname.domain.com] added 0 
> (6.2ms)
> 2017-04-19 12:53:10 58d05530 [app] [I] Import facts for '
> hostname.domain.com' completed. Added: 0, Updated: 18, Deleted 0 facts
> 2017-04-19 12:53:10 58d05530 [app] [I] Completed 201 Created in 755ms 
> (Views: 4.0ms | ActiveRecord: 103.9ms)
> 2017-04-19 12:53:10 c522a2fd [app] [I] Started POST "/api/v2/hosts/facts" 
> for 10.121.66.130 at 2017-04-19 12:53:10 -0500
> 2017-04-19 12:53:10 c522a2fd [app] [I] Processing by 
> Api::V2::HostsController#facts as JSON
> 2017-04-19 12:53:10 c522a2fd [app] [I]   Parameters: 
> {"facts"=>"[FILTERED]", "name"=>"hostname.domain.com", "apiv"=>"v2", 
> :host=>{"name"=>"hostname.domain.com"}}
> 2017-04-19 12:53:10 c522a2fd [audit] [I] [hostname.domain.com] deleted 0 
> (18.9ms)
> 2017-04-19 12:53:10 c522a2fd [audit] [I] [hostname.domain.com] updated 0 
> (532.0ms)
> 2017-04-19 12:53:10 c522a2fd [audit] [I] [hostname.domain.com] added 0 
> (6.4ms)
> 2017-04-19 12:53:10 c522a2fd [app] [I] Import facts for '
> hostname.domain.com' completed. Added: 0, Updated: 0, Deleted 0 facts
> 2017-04-19 12:53:10 c522a2fd [app] [I] Completed 201 Created in 687ms 
> (Views: 8.6ms | ActiveRecord: 94.1ms)
>
> Any advice is greatly appreciated.
>
> Jarret
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: LCE or CV/CCV package differentials

2017-08-03 Thread Lachlan Musicman
Thanks Eric,

I'll take a look at the RFC/etc - but if you have some scripts I could look
at that would be appreciated too.

cheers
L.

--
"The antidote to apocalypticism is *apocalyptic civics*. Apocalyptic civics
is the insistence that we cannot ignore the truth, nor should we panic
about it. It is a shared consciousness that our institutions have failed
and our ecosystem is collapsing, yet we are still here — and we are
creative agents who can shape our destinies. Apocalyptic civics is the
conviction that the only way out is through, and the only way through is
together. "

*Greg Bloom* @greggish
https://twitter.com/greggish/status/873177525903609857

On 4 August 2017 at 10:49, Eric D Helms  wrote:

> There are existing issues around this large feature and an RFC if you'd
> like to contribute via review:
>
> https://github.com/theforeman/rfcs/pull/17
>
> I've written a script using both hammer and apipie to do comparisons I
> could share.
>
> On Aug 3, 2017 7:35 PM, "Lachlan Musicman"  wrote:
>
>>
>> On 3 August 2017 at 22:42, Greg Sutcliffe 
>> wrote:
>>
>>> On Wed, 2017-08-02 at 13:02 +1000, Lachlan Musicman wrote:
>>> > On the "I wish" pile.
>>>
>>> Maybe also add it to our "I wish" pile too? :)
>>>
>>> http://projects.theforeman.org/projects/katello/issues/new
>>>
>>
>> http://projects.theforeman.org/issues/20501
>>
>>
>>
>>
>> --
>> "The antidote to apocalypticism is *apocalyptic civics*. Apocalyptic
>> civics is the insistence that we cannot ignore the truth, nor should we
>> panic about it. It is a shared consciousness that our institutions have
>> failed and our ecosystem is collapsing, yet we are still here — and we are
>> creative agents who can shape our destinies. Apocalyptic civics is the
>> conviction that the only way out is through, and the only way through is
>> together. "
>>
>> *Greg Bloom* @greggish https://twitter.com/greggish/s
>> tatus/873177525903609857
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to foreman-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to foreman-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/foreman-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-users+unsubscr...@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: LCE or CV/CCV package differentials

2017-08-03 Thread Andrew Schofield
On 3 August 2017 at 20:49, Eric D Helms  wrote:

> There are existing issues around this large feature and an RFC if you'd
> like to contribute via review:
>
> https://github.com/theforeman/rfcs/pull/17
>
> I've written a script using both hammer and apipie to do comparisons I
> could share.
>

I'd be interested in this?

I have a basic script which calls the api and drags down all packages from
version a and version b and does a comparison. Its simplistic at best.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: LCE or CV/CCV package differentials

2017-08-03 Thread Eric D Helms
There are existing issues around this large feature and an RFC if you'd
like to contribute via review:

https://github.com/theforeman/rfcs/pull/17

I've written a script using both hammer and apipie to do comparisons I
could share.

On Aug 3, 2017 7:35 PM, "Lachlan Musicman"  wrote:

>
> On 3 August 2017 at 22:42, Greg Sutcliffe 
> wrote:
>
>> On Wed, 2017-08-02 at 13:02 +1000, Lachlan Musicman wrote:
>> > On the "I wish" pile.
>>
>> Maybe also add it to our "I wish" pile too? :)
>>
>> http://projects.theforeman.org/projects/katello/issues/new
>>
>
> http://projects.theforeman.org/issues/20501
>
>
>
>
> --
> "The antidote to apocalypticism is *apocalyptic civics*. Apocalyptic
> civics is the insistence that we cannot ignore the truth, nor should we
> panic about it. It is a shared consciousness that our institutions have
> failed and our ecosystem is collapsing, yet we are still here — and we are
> creative agents who can shape our destinies. Apocalyptic civics is the
> conviction that the only way out is through, and the only way through is
> together. "
>
> *Greg Bloom* @greggish https://twitter.com/greggish/
> status/873177525903609857
>
> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-users+unsubscr...@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: LCE or CV/CCV package differentials

2017-08-03 Thread Lachlan Musicman
On 3 August 2017 at 22:42, Greg Sutcliffe  wrote:

> On Wed, 2017-08-02 at 13:02 +1000, Lachlan Musicman wrote:
> > On the "I wish" pile.
>
> Maybe also add it to our "I wish" pile too? :)
>
> http://projects.theforeman.org/projects/katello/issues/new
>

http://projects.theforeman.org/issues/20501




--
"The antidote to apocalypticism is *apocalyptic civics*. Apocalyptic civics
is the insistence that we cannot ignore the truth, nor should we panic
about it. It is a shared consciousness that our institutions have failed
and our ecosystem is collapsing, yet we are still here — and we are
creative agents who can shape our destinies. Apocalyptic civics is the
conviction that the only way out is through, and the only way through is
together. "

*Greg Bloom* @greggish
https://twitter.com/greggish/status/873177525903609857

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: [Katello] Pulp repos sync on schedule but not showing in katello

2017-08-03 Thread Eric D Helms
I'll shed a little light on what should be happening. When the sync plan
kicks off, it kicks off async by Pulp. The system configures Pulp to have
an http notifier so that when Pulp finished it notifies Katello which
triggers a sync task to index and update new content t for the repositories.

The most obvious thing to check is if you see tasks that result from this
and if you see API hits to Katello for the sync notification URL. You can
find this in /etc/foreman/plugins/katello.yaml.

We need to figure out if Pulp is hitting Katello and the errors like there
or if Pulp is not configured to http notify.

On Aug 3, 2017 9:13 AM, "Anthony Chevalet" 
wrote:

> Hello,
>
> Any news on this? Bug report?
> I have the same behavior for ages (katello 3.0?), and it's still there
> with foreman 1.15.2/Katello 3.4.3.
>
> Thanks,
> Anthony
>
> Le vendredi 31 mars 2017 22:41:46 UTC+2, Alan Evans a écrit :
>>
>> Hello,
>>
>> I am using Katello 3.3/Foreman 1.14.2.  I have a fresh install and I
>> created new Sync plan, product and repos with hammer.  At first I didn't
>> think the jobs were running at all, but I read a thread here that got me
>> looking at things and I found that pulp is in fact syncing on schedule but
>> the results aren't appearing in the katello UI/Hammer CLI.  I suspect there
>> is some kind of post sync job that has to happen that isn't.  If I manually
>> sync them from the UI then the UI is updated.
>>
>> Thoughts?
>>
>> -Alan
>>
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-users+unsubscr...@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] hammer-cli and hammer-cli-foreman 0.11.0 released

2017-08-03 Thread Tomas Strachota
A new version of hammer-cli and hammer-cli-foreman plugin is now
available as gems.

This release contains improvements in session functionality and
several bugfixes in translations and other areas. Please see release
notes for the full list of changes:

https://github.com/theforeman/hammer-cli/releases/tag/0.11.0
https://github.com/theforeman/hammer-cli-foreman/releases/tag/0.11.0

rpm packages will hopefully be available soon:
https://github.com/theforeman/foreman-packaging/pull/1748

Regards
Tomas

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] foreman-puppet 7.2 Types and Providers

2017-08-03 Thread An Pat
I am trying to use Foreman puppet module 7.2 foreman_hostgroup type and
keep getting following error, Could not evaluate: Hostgroup testing locate
hostgroup: (Could not load data from https:/foreman.test: no implicit
conversion of nil into Hash

I am executing on the same foreman host it self with oauth_* params set. I
feel like some dependencies are missing but don't know what.

Can someone help me with this, please?

-AP

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] Re: [Katello] Pulp repos sync on schedule but not showing in katello

2017-08-03 Thread Anthony Chevalet
Hello,

Any news on this? Bug report?
I have the same behavior for ages (katello 3.0?), and it's still there with 
foreman 1.15.2/Katello 3.4.3.

Thanks,
Anthony

Le vendredi 31 mars 2017 22:41:46 UTC+2, Alan Evans a écrit :
>
> Hello,
>
> I am using Katello 3.3/Foreman 1.14.2.  I have a fresh install and I 
> created new Sync plan, product and repos with hammer.  At first I didn't 
> think the jobs were running at all, but I read a thread here that got me 
> looking at things and I found that pulp is in fact syncing on schedule but 
> the results aren't appearing in the katello UI/Hammer CLI.  I suspect there 
> is some kind of post sync job that has to happen that isn't.  If I manually 
> sync them from the UI then the UI is updated.
>
> Thoughts?
>
> -Alan
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: LCE or CV/CCV package differentials

2017-08-03 Thread Greg Sutcliffe
On Wed, 2017-08-02 at 13:02 +1000, Lachlan Musicman wrote:
> On the "I wish" pile.

Maybe also add it to our "I wish" pile too? :)

http://projects.theforeman.org/projects/katello/issues/new

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] foreman + ansible integration not working properly + no facts+ not able to execute role in dashboard

2017-08-03 Thread shyam sundar Keshari
Hi friends:

I am trying to integrate Foreman with Ansible but not able to make it 
working :

Version details :

Ansible :  -->>  ansible 2.3.1.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-11)]

foreman dashboard version : 1.15.2  

I have followed the official URL to integrate Foreman with Ansible .

But i am not able to make it work .

Issue :

1.>NO facts coming 
2.>When i set password in Foreman for root user in Ansible tab ,and then 
able to execute playbook in role .


Kindly update what are more changes I need to make at ansible and foreman 
end to make it work .

If anyone done this ,it will be grt you like to share it .

Thanks in Advance :


-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.