April 23, 2015 at 3:15 am #24584
I configured one pull server and one client in DSC. I created some File resource to copy files from pull server to client machine. And I created one Registry resource to create some registry(I have lot of configurations like this). This registry is created in node machine.
How could I create that registry in Pull server? Do I need to create manually or Can I use DSC for this? If I could use DSC , which modal I need to use Pull or Push? It would be fine if you give some code samples.
I hope we should not change the Pull server LCM to Pull with other LCM configuration like pull node. Should we?
Thanks in advance.
April 23, 2015 at 4:36 am #24588
Sorry I do not understand what you mean with update Pull server. Please attach your configuration script and may be try to rephrase what you are trying to do. Have you read our free ebook on DSC? https://www.penflip.com/powershellorg/the-dsc-book
April 23, 2015 at 7:44 am #24598
Thanks for the response. I think I am not explain the issue well. Here is my scenario.
[ol]1] I configured one pull server and one pull client node.
2] I have PullNodeConfig.ps1 script with two resources[Registry Resource –Create Registry, Script Resource – Create AppPool]].
3] When I execute the script one MOF file is generated for pull client node. I rename the MOF file with respect GUID and create one checksum file. I put that in Pull Server configuration folder.
4] Now the AppPool and registry is created in Pull client node machine.[/ol]
Now my requirement is I want to create that registry and AppPool in my Pull Server itself. I have below plans to implement that.
[ol]1] Create separate configuration file for Pull server along with that resources. And using PUSH [Start-DSCConfiguration] method I will implement and create that registry and AppPool in my Pull server.
2] Or Modify the Pull the Server Local configuration Manger like pull client machine and create MOF file with GUID and put it in configuration folder with checksum values.[/ol]
I am not sure about above process is good or not and the impacts. Please let me know if it is good practices or let me know is there any other way to do. If nothing is possible I will configure it manually .
Please let me know if you need any details.
Thanks again for providing instance response.
April 23, 2015 at 11:23 am #24603
I would use Pull Server but both will work .
April 24, 2015 at 5:50 am #24641
Yes. You can configure your Pull server to be a client to itself. For consistency reasons use the same LCM configuration apart from the client specific properties.
April 24, 2015 at 6:04 am #24651
I tried it and it works as expected. Thank you so much.
You must be logged in to reply to this topic.