Hello ,I am designing a multi-node deployment env with Puppet.
Scenario i have is once one machine is created it will have its hostname allocated dynamically ,
that hostname has to be used by another machine when it runs it manifest on it .
I can get that fqdn of that machine save it in puppetdb and ask another machine to get that hostname using exported resource Is that correct?
Another scenerio in case simultaneously two users runs that module , first machine save its hostname , same time again that module is intiated by another user , now the latest machine would overwrite the entry in puppetdb.
Another scenerio in case simultaneously two users runs that module , first machine save its hostname , same time again that module is intiated by another user , now the latest machine would overwrite the entry in puppetdb.
--To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/65b2db76-2f22-4e01-abdd-56258891e2a9%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/NM3vaVmOG1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
With Regards
Ritesh Nanda
Hello John,Thanks for your reply , sorry for providing less information .I am working on developing websphere multi-node deployment module
, in that i have two roles one is deploymanager another is appserver.I have a type and provider already created for it which run on the deploymanager , which needs certain values like hostname , which would be dynamically generated when the machine is provisioned .
@@websphere_profile { $servertype:ensure => $ensure_profile,hostname => $fqdn,profilename => $ndm_profilename,profilepath => $profilepath,templatepath => $templatepath,cellname => $cellname,nodename => $nodename,port => $start_port,enableadminsecurity => $enableadminsecurity,adminusername => $adminusername,adminpassword => $adminpassword,appservernodename => $appservernodename,tag => websphere,}this resource type first runs on the deploymanager machine which gets provisioned , making it exported resource will store its attributes value in puppetdb .
Once this machine is completed , a new machine would be provisioned which would be appserver , then appserver will also run this resource type providing fqdn from the puppetdb of the deploymanager which is stored by the exported resource.
Now this whole piece would be run by a end-user who will just see a catalog , saying multi-node websphere.
Why would you suppose that one machine's data would overwrite a different one's? Puppet distinguishes one machine from another by their certs, unless you intentionally confuse it by manually assigning the same cert to multiple machines. Puppetdb associates node data with node identity, so one node's data will not overwrite a different one's.Another scenerio in case simultaneously two users runs that module , first machine save its hostname , same time again that module is intiated by another user , now the latest machine would overwrite the entry in puppetdb.
Now if this catalog is ran by two users at the same time , as the exported resource will save information with the tag websphere. As there would be two multinode websphere deployment at the same time , how will puppet know how appserver gets the hostname of its correct deploymanager.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/NM3vaVmOG1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d79007c9-e313-4a77-829e-34cc90911700%40googlegroups.com.
Hi John,Thanks for reply again .That totally does not make sense. I'm not sure exactly how you would apply a pre-compiled catalog to a random machine.This setup would leverage vmware appdirector and integration with puppet master , Where i will create blueprint of first creating a vm and to apply a particular manifest on that node. So vm creation part and puppet run on the node, node defination is not my responsiblity . It will be done by App directSo end user would just the catalog.
This setup you can treat it as a multinode or a cluster setup . Where i have these two components deploymanager and appserver in a puppet module. I have them both in separate classes. So that they can be called on respective nodes.a example Now in a setup of 2 vms there would be one deploymanager which would be created and 1 appserver (later i will work on making it user choice on no. of appserver he wants) will be created and this/these appservers would register itself with the deploymanager.That is the case where i want to export fqdn of deploymanager in puppetdb so that it can be used by these appserver nodes to register itself with deploymanager.
Now the custom resource type i pasted .class websphere::deploymanager{websphere_profile { "Deployment manager":ensure => true,hostname =>$fqdn}}It will be ran on the deploymanager , this resource actually makes that node as deploymanager (its a websphere command basically).You are correct if i make this resource as exported it will not be ran on this node. As i only need fqdn of this node to be exported, is there a way to do it.Then this custom resource is also needed to be ran on the two appserver nodes which would be created. Specifying the fqdn of deploymanager so that these appserver nodes can register itself with deploymanger.class websphere::appserver{websphere_profile { "Appserver1":ensure => true,hostname => (Hostname of deploymanager)}}In this way these nodes will register itself with Deploymanager.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/NM3vaVmOG1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f228f238-c0da-49da-9420-52b224009183%40googlegroups.com.