<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Michael,<div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Le 6 juil. 2016 à 17:07, Michael Gugino <<a href="mailto:Michael.Gugino@walmart.com" class="">Michael.Gugino@walmart.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello Fabrice,<br class=""><br class="">  I think the easiest way would be to set the affinity for each<br class="">controller/infrastructure host using 'rsyslog_container: 0' as seen in the<br class="">following section of the install guide:<br class=""><a href="http://docs.openstack.org/developer/openstack-ansible/install-guide-revised" class="">http://docs.openstack.org/developer/openstack-ansible/install-guide-revised</a><br class="">-draft/configure-initial.html#affinity<br class=""><br class=""></div></div></blockquote>ok, i look at this.</div><div><br class=""></div><div>Actually (first deploy with a dedicated log server) , i have:</div><div>./scripts/inventory-manage.py -G</div><div>rsyslog_container<span class="Apple-tab-span" style="white-space:pre">  </span>|<span class="Apple-tab-span" style="white-space:pre">   </span>log1_rsyslog_container-81441bbb</div><div><br class=""></div><div>So, from what you write, not to create a log_container on the log server, i can modify my openstack_user_config.yml to be:</div><div><br class=""></div><div>log_hosts:</div><div>  log1:</div><div>    affinity:</div><div>      rsyslog_container: 0</div><div>    ip: 172.29.236.240</div><div><br class=""></div><div>Is that right ?</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">  Next, you should add your actual logging hosts to your<br class="">openstack_user_config as seen here:<br class=""><a href="https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_de" class="">https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_de</a><br class="">ploy/openstack_user_config.yml.aio#L122-L124<br class=""><br class="">  Be sure to comment out the rsyslog-install.yml line of<br class="">setup-infrastructure.yml, and be sure that you make any necessary<br class="">modifications to the openstack-ansible-rsyslog_client role.  Modifications<br class="">may not be necessary, depending on your needs, and you may be able to<br class="">specify certain variables in user_variables.yml to achieve the desired<br class="">results.<br class=""><br class=""></div></div></blockquote>In openstack-ansible-rsyslog_client, the template 99-rsyslog.conf.j2 use :</div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">*.* @{{ hostvars[server]['ansible_ssh_host'] }}:{{ rsyslog_client_udp_port }};RFC3164fmt</span></div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">I will test to ensure the IP is that from log1.</span></div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">If yes, no more modification is needed.</span></div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div style="widows: 1;">Thanks again.</div><div style="widows: 1;">Regards</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">  As always, make sure you test these modifications in a non-production<br class="">environment to ensure you achieve the desired results.<br class=""><br class=""><br class="">Michael Gugino<br class="">Cloud Powered<br class="">(540) 846-0304 Mobile<br class=""><br class="">Walmart ✻<br class="">Saving people money so they can live better.<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">On 7/6/16, 10:24 AM, "fabrice grelaud" <<a href="mailto:fabrice.grelaud@u-bordeaux.fr" class="">fabrice.grelaud@u-bordeaux.fr</a>><br class="">wrote:<br class=""><br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">I would like to know what is the best approach to customize our<br class="">openstack-ansible deployment if we want to use our existing solution of<br class="">ELK and centralized rsyslog server.<br class=""><br class="">We deploy openstack-ansible (mitaka 13.1.2 release) on our infrastructure<br class="">with for convenient and no risk a vm for syslog server role. That is ok.<br class="">But now if i want to use our centralized syslog server ?<br class=""><br class="">What i need is to set ip address of our existing server to the rsyslog<br class="">client (containers + metal) and of course configure our rsyslog.conf to<br class="">manage openstack template.<br class="">So:<br class="">- no need to create on the log server a lxc container (setup-hosts.yml:<br class="">lxc-hosts-setup, lxc-containers-create)<br class="">- no need to install syslog server (setup-infrastructure.yml:<br class="">rsyslog-install.yml)<br class=""><br class="">How can i modify my openstack-ansible environment (/etc/openstack_deploy,<br class="">env.d, conf.d, openstack_user_config.yml, user_variables.yml, playbook ?)<br class="">the most transparent manner and that permits minor release update simply ?<br class=""><br class="">Thanks.<br class=""><br class="">Fabrice Grelaud<br class="">Université de Bordeaux<br class=""><br class=""><br class=""><br class=""><br class="">__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></blockquote><br class=""><br class="">This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential ***<br class="">__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></div></blockquote></div><br class=""></div></body></html>