Re: [Pulp-list] problem using ansible galaxy Pulp role

2017-04-19 Thread Dennis Kliban
Thank you for such prompt response! That got me unstuck!

On Tue, Apr 18, 2017 at 4:27 PM, Jiri Tyr  wrote:

> Please follow these installation instructions:
>
> https://github.com/jtyr/ansible-config_encoder_filters#installation
>
> On Tue, Apr 18, 2017 at 6:24 PM, Dennis Kliban  wrote:
>
>> I would like to use the ansible Pulp role published on ansible galaxy[0].
>> However, I am having some trouble. I ran the following commands on my
>> CentOS 7 box:
>>
>> sudo yum install http://dl.fedoraproject.org/pu
>> b/epel/epel-release-latest-7.noarch.rpm
>> sudo yum install ansible
>> sudo ansible-galaxy install jtyr.pulp
>> sudo ansible-galaxy install jtyr.mongodb
>>
>> I modified the first example from ansiblegalaxy.com to create
>> deploy_pulp.yml playbook. I prepended each role with jtyr. so ansible could
>> recognize the installed role.
>>
>> # Example of a single host installation
>> - hosts: all
>>   roles:
>> - role: jtyr.mongodb
>>   mongodb_net_bindIp: 127.0.0.1
>>   mongodb_net_wireObjectCheck: false
>>   mongodb_net_unixDomainSocket_enabled: true
>>   mongodb_processManagement_fork: true
>>   mongodb_systemLog_logAppend: true
>>   mongodb_systemLog_timeStampFormat: iso8601-utc
>> - role: jtyr.pulp
>>   pulp_install_qpid: true
>>   pulp_install_server: true
>>   pulp_install_admin: true
>>   pulp_install_consumer: true
>>   pulp_run_celerybeat: true
>>   pulp_run_resource_manager: true
>>
>>
>> Here is the output I get when I try to run the playbook.
>>
>> [centos@pulp-cdn-mirror ~]$ sudo ansible-playbook -i i.txt
>> deploy_pulp.yml
>> ERROR! the role 'config_encoder_filters' was not found in
>> /home/centos/roles:/etc/ansible/roles:/etc/ansible/roles:/home/centos
>>
>> The error appears to have been in 
>> '/etc/ansible/roles/jtyr.mongodb/meta/main.yml':
>> line 16, column 5, but may
>> be elsewhere in the file depending on the exact syntax problem.
>>
>> The offending line appears to be:
>>
>> dependencies:
>>   - config_encoder_filters
>> ^ here
>>
>>
>> I then ran:
>>
>> sudo ansible-galaxy install jtyr.config_encoder_filters
>>
>>
>> I am still getting an error. How can I install the roles in such a way
>> that ansible recognizes them without the jtyr. prefix?
>>
>>
>> [0] https://galaxy.ansible.com/jtyr/pulp/
>>
>>
>> Thanks,
>> Dennis
>>
>> ___
>> Pulp-list mailing list
>> Pulp-list@redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>>
>
>
___
Pulp-list mailing list
Pulp-list@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list

Re: [Pulp-list] problem using ansible galaxy Pulp role

2017-04-18 Thread Jiri Tyr
Please follow these installation instructions:

https://github.com/jtyr/ansible-config_encoder_filters#installation

On Tue, Apr 18, 2017 at 6:24 PM, Dennis Kliban  wrote:

> I would like to use the ansible Pulp role published on ansible galaxy[0].
> However, I am having some trouble. I ran the following commands on my
> CentOS 7 box:
>
> sudo yum install http://dl.fedoraproject.org/pub/epel/epel-release-latest-
> 7.noarch.rpm
> sudo yum install ansible
> sudo ansible-galaxy install jtyr.pulp
> sudo ansible-galaxy install jtyr.mongodb
>
> I modified the first example from ansiblegalaxy.com to create
> deploy_pulp.yml playbook. I prepended each role with jtyr. so ansible could
> recognize the installed role.
>
> # Example of a single host installation
> - hosts: all
>   roles:
> - role: jtyr.mongodb
>   mongodb_net_bindIp: 127.0.0.1
>   mongodb_net_wireObjectCheck: false
>   mongodb_net_unixDomainSocket_enabled: true
>   mongodb_processManagement_fork: true
>   mongodb_systemLog_logAppend: true
>   mongodb_systemLog_timeStampFormat: iso8601-utc
> - role: jtyr.pulp
>   pulp_install_qpid: true
>   pulp_install_server: true
>   pulp_install_admin: true
>   pulp_install_consumer: true
>   pulp_run_celerybeat: true
>   pulp_run_resource_manager: true
>
>
> Here is the output I get when I try to run the playbook.
>
> [centos@pulp-cdn-mirror ~]$ sudo ansible-playbook -i i.txt deploy_pulp.yml
> ERROR! the role 'config_encoder_filters' was not found in
> /home/centos/roles:/etc/ansible/roles:/etc/ansible/roles:/home/centos
>
> The error appears to have been in 
> '/etc/ansible/roles/jtyr.mongodb/meta/main.yml':
> line 16, column 5, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
> dependencies:
>   - config_encoder_filters
> ^ here
>
>
> I then ran:
>
> sudo ansible-galaxy install jtyr.config_encoder_filters
>
>
> I am still getting an error. How can I install the roles in such a way
> that ansible recognizes them without the jtyr. prefix?
>
>
> [0] https://galaxy.ansible.com/jtyr/pulp/
>
>
> Thanks,
> Dennis
>
> ___
> Pulp-list mailing list
> Pulp-list@redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
>
___
Pulp-list mailing list
Pulp-list@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list

[Pulp-list] problem using ansible galaxy Pulp role

2017-04-18 Thread Dennis Kliban
I would like to use the ansible Pulp role published on ansible galaxy[0].
However, I am having some trouble. I ran the following commands on my
CentOS 7 box:

sudo yum install
http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install ansible
sudo ansible-galaxy install jtyr.pulp
sudo ansible-galaxy install jtyr.mongodb

I modified the first example from ansiblegalaxy.com to create
deploy_pulp.yml playbook. I prepended each role with jtyr. so ansible could
recognize the installed role.

# Example of a single host installation
- hosts: all
  roles:
- role: jtyr.mongodb
  mongodb_net_bindIp: 127.0.0.1
  mongodb_net_wireObjectCheck: false
  mongodb_net_unixDomainSocket_enabled: true
  mongodb_processManagement_fork: true
  mongodb_systemLog_logAppend: true
  mongodb_systemLog_timeStampFormat: iso8601-utc
- role: jtyr.pulp
  pulp_install_qpid: true
  pulp_install_server: true
  pulp_install_admin: true
  pulp_install_consumer: true
  pulp_run_celerybeat: true
  pulp_run_resource_manager: true


Here is the output I get when I try to run the playbook.

[centos@pulp-cdn-mirror ~]$ sudo ansible-playbook -i i.txt deploy_pulp.yml
ERROR! the role 'config_encoder_filters' was not found in
/home/centos/roles:/etc/ansible/roles:/etc/ansible/roles:/home/centos

The error appears to have been in
'/etc/ansible/roles/jtyr.mongodb/meta/main.yml': line 16, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

dependencies:
  - config_encoder_filters
^ here


I then ran:

sudo ansible-galaxy install jtyr.config_encoder_filters


I am still getting an error. How can I install the roles in such a way that
ansible recognizes them without the jtyr. prefix?


[0] https://galaxy.ansible.com/jtyr/pulp/


Thanks,
Dennis
___
Pulp-list mailing list
Pulp-list@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list