This commit is contained in:
2019-02-06 00:49:12 +03:00
commit 8dbb1bb605
4796 changed files with 506072 additions and 0 deletions

View File

@@ -0,0 +1 @@
environment="LJUSERNAME=replicator",environment="LJCOMMAND=replicator" ssh-dss SOMEKEY replicator@comment.field.stuff

View File

@@ -0,0 +1,5 @@
# configuration for the command shell. these are commands setup so that if
# someone comes in over SSH and their key specifies an environment variable
# of LJCOMMAND, it will be cross referenced against this list
replicator = 1.2.3.4 : 9107

27
wcmtools/spud/conf/sshd_config Executable file
View File

@@ -0,0 +1,27 @@
### begin config section #####################################################
# basic setup information. we run on a different port because this
# SSH daemon's only job is to let our lj management user through.
Port 222
# important: only allow us in. set this to the username that you want to
# allow into the system. see the documentation for more setup information.
AllowUsers ljmgmt
### end config section #######################################################
# only allow sshv2
Protocol 2
# do not allow root to log in (they shouldn't be able to due to AllowUsers
# above, but just to be extra paranoid...)
PermitRootLogin no
# must use SSH keys to login to this daemon
PasswordAuthentication no
# be very silent (should also touch .hushlogin in the ljmgmt home directory)
PrintMotd no
# required for our authorized_keys file to work
PermitUserEnvironment yes

View File

@@ -0,0 +1,15 @@
# configuration for the replicator and internal statistic accumulator.
# first setup our main configuration information to point to where the server
# should be found at. this server is the local network server at the near
# endpoint. this is where data is replicated TO.
server = 127.0.0.1
port = 9106
# now setup the information about the SSH connection we're going to use to
# gather data from the remote server. this is where we will get the data,
# or, the point we're replicating FROM.
ssh_key = /home/lj/.ssh/id_dsa
ssh_host = 1.2.3.4
ssh_port = 222
ssh_user = ljmgmt

7
wcmtools/spud/conf/stats.conf Executable file
View File

@@ -0,0 +1,7 @@
# global configuration options, this points to our SPUD server
server = 1.2.3.4
port = 9107
# automatically add monitoring plugins for all of the LiveJournal services. the
# times after the equal sign are intervals between plugin updates in seconds.
config_generator(mysql = 5, perlbal = 5, memcached = 5, mogstored = 60, mogilefsd = 5)