Guest User

Untitled

a guest
Jan 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. # enable provisioning
  2. $ cat /Users/rip/.mcollective.server
  3. plugin.choria.server.provision = true
  4. plugin.choria.middleware_hosts = dev1.devco.net:4222
  5.  
  6. # a custom build with custom auto provisioning urls
  7. % ./choria-development-darwin-x86_64 buildinfo
  8. Choria build settings:
  9.  
  10. Build Data:
  11. Version: development
  12. Git SHA: bbf1d8e
  13. Build Date: 2018-01-10 15:52:49 +0100
  14. License: Apache-2.0
  15.  
  16. Network Broker Settings:
  17. Maximum Network Clients: 50000
  18.  
  19. Server Settings:
  20. Provisioning Brokers: demo.nats.io:4222
  21.  
  22. Security Defaults:
  23. TLS: false
  24. x509 Security: false
  25.  
  26. NOTE: The security of this build is non standard, you might be running without adequate protocol level security. Please ensure this is the build you intend to be using.
  27.  
  28.  
  29. # run it, it notes its in provisioning mode and starts the provisioning agent on the build time provisioning url
  30. # and not the configured url or whats in SRV
  31. % ./choria-development-darwin-x86_64 server run --config ~/.mcollective.server
  32. INFO[0000] Choria Server version development starting with config /Users/rip/.mcollective.server
  33. INFO[0000] Enterpring provision mode with servers [{demo.nats.io 4222 nats}] and federation disabled component=server identity=dust.local
  34. INFO[0000] Initial servers: []choria.Server{choria.Server{Host:"demo.nats.io", Port:4222, Scheme:"nats"}} component=server identity=dust.local
  35. INFO[0000] Connected to nats://demo.nats.io:4222 component=server identity=dust.local
  36. INFO[0000] Registering new agent discovery of type discovery component=server identity=dust.local subsystem=agents
  37. INFO[0000] Subscribing agent discovery to mcollective.broadcast.agent.discovery component=server identity=dust.local subsystem=agents
  38. INFO[0000] Registering new agent choria_util of type choria_util component=server identity=dust.local subsystem=agents
  39. INFO[0000] Subscribing agent choria_util to mcollective.broadcast.agent.choria_util component=server identity=dust.local subsystem=agents
  40. INFO[0000] Registering new agent choria_provision of type choria_provision component=server identity=dust.local subsystem=agents
  41. INFO[0000] Subscribing agent choria_provision to mcollective.broadcast.agent.choria_provision component=server identity=dust.local subsystem=agents
  42. INFO[0000] Subscribing node dust.local to mcollective.node.dust.local component=server identity=dust.local
  43.  
  44. # it gets a message to reconfigure itself, with provisioning off
  45. INFO[0005] Handling message d6691641fd57593e8363117766503dd7 for choria_provision#configure from choria=rip.mcollective agent=choria_provision component=server identity=dust.local subsystem=agents
  46. INFO[0005] data: {"config":{"plugin.choria.middleware_hosts":"demo.nats.io:4222"},"process_results":true} agent=choria_provision component=server identity=dust.local subsystem=agents
  47. WARN[0005] Rewriting configuration file /Users/rip/.mcollective.server in request d6691641fd57593e8363117766503dd7 from choria=rip.mcollective (dev1.devco.net) agent=choria_provision component=server identity=dust.local subsystem=agents
  48.  
  49. # it gets a message to restart itself
  50. INFO[0005] Handling message ebe7868bb49353d3816ce214f371df87 for choria_provision#restart from choria=rip.mcollective agent=choria_provision component=server identity=dust.local subsystem=agents
  51. WARN[0005] Restarting Choria Server after 4s splay time agent=choria_provision component=server identity=dust.local subsystem=agents
  52.  
  53. # it restarts, this time without any provisioning agent
  54. INFO[0000] Choria Server version development starting with config /Users/rip/.mcollective.server
  55. INFO[0000] Initial servers: []choria.Server{choria.Server{Host:"demo.nats.io", Port:4222, Scheme:"nats"}} component=server identity=dust.local
  56. INFO[0000] Connected to nats://demo.nats.io:4222 component=server identity=dust.local
  57. INFO[0000] Registering new agent discovery of type discovery component=server identity=dust.local subsystem=agents
  58. INFO[0000] Subscribing agent discovery to mcollective.broadcast.agent.discovery component=server identity=dust.local subsystem=agents
  59. INFO[0000] Registering new agent choria_util of type choria_util component=server identity=dust.local subsystem=agents
  60. INFO[0000] Subscribing agent choria_util to mcollective.broadcast.agent.choria_util component=server identity=dust.local subsystem=agents
  61. INFO[0000] Subscribing node dust.local to mcollective.node.dust.local component=server identity=dust.local
Add Comment
Please, Sign In to add comment