]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@helga.brehm-online.com>
Mon, 15 May 2017 12:10:57 +0000 (14:10 +0200)
committerroot <root@helga.brehm-online.com>
Mon, 15 May 2017 12:10:57 +0000 (14:10 +0200)
.etckeeper
ipmi/ipmisim1.emu [new file with mode: 0644]
ipmi/lan.conf [new file with mode: 0644]

index 9fd9e59dbc429fe51cf7f76a619f3241de7d7047..a1d45c79b226d7f2a3730f37bbb1292840f146b1 100755 (executable)
@@ -1751,6 +1751,9 @@ maybe chmod 0755 'init.d/urandom'
 maybe chmod 0644 'initramfs.mounts'
 maybe chmod 0644 'inittab'
 maybe chmod 0644 'inputrc'
+maybe chmod 0755 'ipmi'
+maybe chmod 0644 'ipmi/ipmisim1.emu'
+maybe chmod 0644 'ipmi/lan.conf'
 maybe chmod 0755 'iproute2'
 maybe chmod 0644 'iproute2/ematch_map'
 maybe chmod 0644 'iproute2/group'
@@ -2052,7 +2055,8 @@ maybe chmod 0644 'openldap/schema/samba.schema'
 maybe chmod 0644 'openldap/schema/sudo.schema'
 maybe chgrp 'ldap' 'openldap/slapd.conf'
 maybe chmod 0640 'openldap/slapd.conf'
-maybe chmod 0600 'openldap/slapd.conf.default'
+maybe chgrp 'ldap' 'openldap/slapd.conf.default'
+maybe chmod 0640 'openldap/slapd.conf.default'
 maybe chmod 0600 'openldap/slapd.ldif'
 maybe chmod 0600 'openldap/slapd.ldif.default'
 maybe chmod 0755 'openldap/ssl'
diff --git a/ipmi/ipmisim1.emu b/ipmi/ipmisim1.emu
new file mode 100644 (file)
index 0000000..367715b
--- /dev/null
@@ -0,0 +1,42 @@
+# This is an example simulation setup for ipmi_sim.  It creates a single
+# management controller as a BMC.  That will have the standard watchdog
+# sensor and we add a temperature sensor.
+
+# The BMC is the MC at address 20
+mc_setbmc 0x20
+
+# Now add the BMC
+mc_add 0x20 0 no-device-sdrs 0x23 9 8 0x9f 0x1291 0xf02 persist_sdr
+sel_enable 0x20 1000 0x0a
+
+# Watchdog sensor.  This must be sensor zero.
+sensor_add 0x20 0 0 35 0x6f event-only
+sensor_set_event_support 0x20 0 0 enable scanning per-state \
+       000000000001111 000000000000000 \
+       000000000001111 000000000000000
+
+# Add a temperature sensor and its SDR.  Note that sensor 0 is already
+# taken as the watchdog sensor.
+sensor_add 0x20 0 1 0x01 0x01
+# Start with the value set to 0x60
+sensor_set_value 0x20 0 1 0x60 0
+# Set just the upper thresholds with the values 0x70, 0x90, and 0xa0
+sensor_set_threshold 0x20 0 1 settable 111000 0xa0 0x90 0x70 00 00 00
+# Enable all upper threshold events events
+sensor_set_event_support 0x20 0 1 enable scanning per-state \
+       000111111000000 000111111000000 \
+       000111111000000 000111111000000
+
+# Add a satellite MC
+mc_add 0x30 2 no-device-sdrs 0x98 0x10 1 0x20 0x1291 0xf03
+
+sensor_add 0x30 0 1 0x01 0x01 poll 1000 file "/tmp/file1.ipm"
+sensor_set_threshold 0x30 0 1 settable 111000 0xa0 0x90 0x70 00 00 00
+sensor_set_event_support 0x30 0 1 enable scanning per-state \
+       000111111000000 000111111000000 \
+       000111111000000 000111111000000
+
+mc_enable 0x30
+
+# Turn on the BMC
+mc_enable 0x20
diff --git a/ipmi/lan.conf b/ipmi/lan.conf
new file mode 100644 (file)
index 0000000..c251d14
--- /dev/null
@@ -0,0 +1,126 @@
+# lan.conf
+# A configuration file for lanserv or ipmi_sim to configure the various
+# communication parameters for the device.
+
+# This is a name used to identify this instance, and used to create
+# the default name of the emulator startup command file and eventually
+# the storage facility for permanent storage.
+name "ipmisim1"
+
+#
+# Work on the BMC first
+set_working_mc 0x20
+
+  # Define a LAN channel on channel 1
+  startlan 1
+    # Define an IP address and port to listen on.  You can define more
+    # than one address/port to listen on multiple addresses.  The ::
+    # listens on all addresses.
+    addr localhost 9001
+    #addr 192.168.27.126 9000
+    #addr 192.168.27.200 9000
+
+    # Maximum privilege limit on the channel.
+    priv_limit admin
+
+    # Allowed IPMI 1.5 authorization types
+    allowed_auths_callback none md2 md5 straight
+    allowed_auths_user none md2 md5 straight
+    allowed_auths_operator none md2 md5 straight
+    allowed_auths_admin none md2 md5 straight
+
+    # guid for IPMI 2.0 authorization  You can also use a string
+    guid a123456789abcdefa123456789abcdef
+    #guid "I_AM_A_REAL_BMC!"
+
+    # You can specify a BMC key for IPMI 2.0 authorization.  See the
+    # spec for details.
+    #bmc_key "abcdefghijklmnopqrst"
+
+    # A program to get and set the LAN configuration of the interface.
+    #lan_config_program "/usr/local/bin/ipmi_sim_lancontrol eth0"
+    lan_config_program "./ipmi_sim_lancontrol eth1"
+  endlan
+
+  #chassis_control "./ipmi_sim_chassiscontrol 0x20"
+
+  # Define a serial VM inteface for channel 15 (the system interface) on
+  # port 9002, just available to the local system (localhost).
+  serial 15 localhost 9002 codec VM
+
+  # startcmd is what to execute to start a VM associated with the
+  # codec above (localhost 9002).  It also starts a console serial port
+  # on port 9003 that is also used as the monitor interface.
+  startcmd "/home/cminyard/git/qemu/O/x86_64-softmmu/qemu-system-x86_64 --enable-kvm -drive file=/work/cge7/build.x86-generic-64/tmp/deploy/images/complete-image.ext2,format=raw -nographic -kernel ~/git/linux-ipmi/Ox86_64/arch/x86/boot/bzImage -append 'root=/dev/sda console=ttyS0,115200' -net nic,model=e1000,macaddr=52:54:00:12:34:59 -net user,hostfwd=tcp::5556-10.0.2.15:22 -chardev socket,id=ipmi0,host=localhost,port=9011,reconnect=10 -device ipmi-bmc-extern,id=bmc0,chardev=ipmi0 -device isa-ipmi-bt,bmc=bmc0 -serial mon:telnet::9012,server,telnet,nowait"
+
+  sol "telnet:localhost:9012" 115200
+
+  # Start startcmd at startup?  Default is false.
+  startnow false
+
+  # The amount of time to wait for the startcmd to do a graceful shutdown
+  # on a powerdown request.  The simulator will send a request to the
+  # target, wait this amount of time, and then do a SIGTERM kill on the
+  # process.  If this is zero, a SIGTERM will not be done (nor will a SIGKILL).
+  # Note that if the simulator does not have a connection to the VM, the
+  # graceful shutdown is skipped and a SIGTERM is done immediately.
+  # Default time is 60 seconds.
+  #poweroff_wait 30
+  
+  # The amount of time to wait for SIGTERM to kill the process.  If the process
+  # does not terminate in this period of time, send a SIGKILL kill.  If this
+  # is zero, don't send the SIGKILL.  Default time is 20 seconds.
+  #kill_wait 5
+
+  # Now add some users.  User 0 is invalid, user 1 is the special "anonymous"
+  # user and cannot take a username.  Note that the users here are only
+  # used if the persistent user config doesn't exist.
+  #    # valid name      passw  priv-lim max-sess allowed-auths
+  user 1 true  ""        "test" user     10       none md2 md5 straight
+  user 2 true  "ipmiusr" "test" admin    10       none md2 md5 straight
+
+#  sol "/dev/ttyUSB0" 38400 history=4000 historyfru=10
+
+#
+# Switch to a new MC
+#
+set_working_mc 0x30
+
+  # Add a SOL config, a device and a default baud rate.
+  # "history" sets a history buffer size.  This means that DCD and CTS will
+  # always be enabled to the device, and we will constantly collect
+  # history for the device.  It will be available as SOL instance 2
+  # on the device.  If the optional backupfile option is specified,
+  # the history data is stored in the given file if the BMC shuts down
+  # (or is killed by a catchable signal) and restored from that file if it
+  # starts up.
+  # If historyfru=N is specified, then FRU device N on the MC will be
+  # able to fetch the contents of the history buffer, too, up to
+  # 65535 bytes (the max size of FRU data).
+  # Specifying nortscts disabled rtscts on the port.  It will still change
+  # the RTS output line, but it won't listen to CTS.
+  # Normally the data is left in the history buffer when read.  If
+  # you want the history data to be cleared from the buffer on read
+  # add readclear.
+  #sol "/dev/ttyUSB0" 19200 nortscts readclear
+#  sol "/dev/ttyUSB0" 38400 history=4000,backupfile=/var/ipmi_sim/solhist1 historyfru=10
+
+  # Define a serial VM inteface for channel 15 (the system interface) on
+  # port 9003 for the MC at 0x30
+  serial 15 localhost 9011 codec VM
+
+  startcmd "$HOME/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 --enable-kvm -drive file=$HOME/KVM/Test4sda -nographic -net nic,model=e1000,macaddr=52:54:00:12:34:59 -net user,hostfwd=tcp::5556-10.0.2.15:22 -chardev socket,id=ipmi0,host=localhost,port=9011,reconnect=10 -device isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial mon:tcp::9012,server,telnet,nowait"
+
+  # Start startcmd at startup?  Default is false.
+  startnow false
+
+# Allow a console connection to perform emulation commands.
+#console localhost 9000
+
+# Dynamically load a module to extend the simulator.  After the module is
+# loaded, if the function "ipmi_sim_module_init" is defined in the module,
+# it will be called with the following parameters:
+#  int ipmi_sim_module_init(sys_data_t *sys, char *initstr);
+# where initstr is the init string passed on the module load line.
+# It should return 0 on success or an errno no failure.
+#loadlib "/opt/lib/ipmi_sim_extend.so" "Initialization String"