Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. #cloud-config
  2.  
  3. users:
  4. - default
  5. - name: legions
  6. system: true
  7. homedir: /opt/legions
  8. shell: /usr/sbin/nologin
  9.  
  10. write_files:
  11. - path: /etc/systemd/system/legions.service
  12. content: |
  13. [Unit]
  14. Description=Legions Server
  15.  
  16. [Service]
  17. ExecStart=/opt/legions/live/Legions.linux --mod-list=modList_Server.txt --server-config=cloud.cs
  18. User=legions
  19. WorkingDirectory=/opt/legions/live
  20. Restart=always
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
  24. - path: /etc/legions_config.cs
  25. content: |
  26. /**
  27. * Admin Levels: Every superior admin level can do everything
  28. * the level below can do.
  29. *
  30. * Level 1: Pug Admin
  31. * - Can set the server password so people can join pugs
  32. * - Can force players to switch teams
  33. * - Can change maps
  34. * Level 2: Moderator
  35. * - Can kick and ban people
  36. * Level 3: Admin
  37. * - Slash commands
  38. * Level 4: Super Admin
  39. * - Has Eval access
  40. * Level 5: Owner
  41. * - God
  42. */
  43.  
  44. // This level can't do anything
  45. $Host::Admins::Name[0] = "Player";
  46. $Host::Admins::Level[0] = 0;
  47. $Host::Admins::Password[0] = "";
  48.  
  49. $Host::Admins::Name[1] = "PUG";
  50. $Host::Admins::Level[1] = 1;
  51. $Host::Admins::Password[1] = "change_me1";
  52.  
  53. $Host::Admins::Name[2] = "Moderator";
  54. $Host::Admins::Level[2] = 2;
  55. $Host::Admins::Password[2] = "change_me2";
  56.  
  57. $Host::Admins::Name[3] = "Admin";
  58. $Host::Admins::Level[3] = 3;
  59. $Host::Admins::Password[3] = "change_me3";
  60.  
  61. $Host::Admins::Name[4] = "Super Admin";
  62. $Host::Admins::Level[4] = 4;
  63. $Host::Admins::Password[4] = "change_me4";
  64.  
  65. $Host::Admins::Name[5] = "Owner";
  66. $Host::Admins::Level[5] = 5;
  67. $Host::Admins::Password[5] = "change_me5";
  68.  
  69. $Host::AutoResetPassword = false;
  70. $Host::AutoResetPasswordTime = 600000; // Default of 600,000 milliseconds = 10 minutes after all players have left
  71. $Host::DefaultPassword = "";
  72.  
  73. // A lot of these will be overrided by Server::create() in server.cs
  74. // if the options are selected using the GUI page gameMenu.cs
  75. $Host::Name = "A Dedicated Server";
  76. $Host::GameType = "CTF";
  77. $Host::MaxPlayers = 32;
  78. $Host::MaxObservers = 10;
  79. $Host::Type = "Multiplayer Web";
  80. $Host::MinimumStartPlayers = 1;
  81. $Host::BroadcastMaster = true;
  82.  
  83. new scriptGroup(MapRotationGroup)
  84. {
  85. };
  86.  
  87. addMapToRotation("Fallout.mis","CTF",14,40);
  88. addMapToRotation("Frostbyte.mis","CTF",0,22);
  89. addMapToRotation("WinterMelt.mis","CTF",0,20);
  90. addMapToRotation("ZenithCauldron.mis","CTF",14,40);
  91. addMapToRotation("SandBox.mis","TDM",0,30);
  92.  
  93. bootcmd:
  94. - "dpkg --add-architecture i386"
  95.  
  96. packages:
  97. - libstdc++6:i386
  98.  
  99. runcmd:
  100. - "mkdir /opt/legions"
  101. - "rsync -a --stats --progress --compress --chown=legions:legions rsync.legionsoverdrive.com::live /opt/legions/live"
  102. - "install --owner=legions --group=legions /etc/legions_config.cs /opt/legions/live/server/preferences/cloud.cs"
  103. - "systemctl enable legions.service"
  104. - "service legions start"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement