init
This commit is contained in:
1
wcmtools/spud/conf/authorized_keys
Executable file
1
wcmtools/spud/conf/authorized_keys
Executable file
@@ -0,0 +1 @@
|
||||
environment="LJUSERNAME=replicator",environment="LJCOMMAND=replicator" ssh-dss SOMEKEY replicator@comment.field.stuff
|
||||
5
wcmtools/spud/conf/cmdshell.conf
Executable file
5
wcmtools/spud/conf/cmdshell.conf
Executable 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
27
wcmtools/spud/conf/sshd_config
Executable 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
|
||||
15
wcmtools/spud/conf/stats-local.conf
Executable file
15
wcmtools/spud/conf/stats-local.conf
Executable 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
7
wcmtools/spud/conf/stats.conf
Executable 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)
|
||||
Reference in New Issue
Block a user