Code Monkey home page Code Monkey logo

puppet's People

Contributors

akira25 avatar booo avatar egmont1227 avatar nberens-dalia avatar pmelange avatar sarumpaet avatar svenroederer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet's Issues

remove old kernel versions

From time to time we don't have enough space to update the system because we keep multiple old kernel versions in the file system. We should check if there is an option to remove the old kernels with an auto-update or if we need to write a cron-job.

double check the php configuration of nginx

Every time I have to configure nginx and php-fpm I get crazy :/ I'm not sure if the configuration is sane. We should check this all togehter if we plan to use a php frontend.

rotate logs

We should rotate the nginx logs. There is a logrotate module for puppet.

use puppet-community/unattended_upgrades

They remove the unattended_upgrade class from the apt module. We should use the new puppet community module instead. We should check if the default configuration installs security updates only.

remove apticron or create a sane configuration

From time to time apticron informs me about new packages e.g. on monitor.berlin... We do install security updates without human interaction. I don't see a reason why I should update normal packages and why apticron should annoy me from time to time.

I suggest we remove apticron or find a usefull configuration.

shutdown openvpn instance ianua-melle

On the vpn03a host we have another openvpn instance apart from the tcp and udp instances. We should move all users to the new instance and shutdown the instance. I contacted possible useres with new credentials and asked them to migrate. I will shutdown the old instance at 2015-01-15.

rrdcached configuration

Add configuration for rrdcached.

  • create /var/lib/rrdcached/{db, journal}
  • start service
  • -B option fix

update openvpn package

We use a patched version of openvpn that did not receive updates for a long time. We should update the openvpn package.

ffvpn: port routing table changes to puppet

I made some changes to the routing infrastructure which we have to port to puppet. I added a "ip rule" to /etc/rc.local, added another routing table and changed the openvpn up/down script to use the new routing table.

openvpn logging

Each openvpn instance should log to /var/log/openvpn/ and we should add a logrotate file to /etc/logrotate.d/ for openvpn.

puppet: couldn't find class php-fpm for node monitor

Bin der readme gefolgt, ich vermute irgendein typisches Dependencyproblem, und die hat ja normalerweise schon mal irgendwer gesehen und vergessen aufzuschreiben :)

$ vagrant up
==> monitor: Mounting shared folders...
    monitor: /vagrant => /home/user/freifunk/puppet/puppet
    monitor: /tmp/vagrant-puppet/modules-6088f7e1c7d848ff4b2520c25b0f7ac1 => /home/user/freifunk/puppet/puppet/modules
    monitor: /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513 => /home/user/freifunk/puppet/puppet/manifests
==> monitor: Running provisioner: shell...
    monitor: Running: /tmp/vagrant-shell20160829-25979-y46354.sh
==> monitor: stdin: is not a tty
==> monitor: Generating a 4096 bit RSA private key
[...]
==> monitor: writing new private key to '/etc/ssl/private/monitor.berlin.freifunk.net.key'
==> monitor: -----
==> monitor: Signature ok
==> monitor: subject=
==> monitor: /C=DE/ST=Berlin/O=Freifunk Berlin/L=Berlin/CN=monitor.berlin.freifunk.net/OU=Freifunk Berlin/[email protected]
==> monitor: Getting Private key
==> monitor: Running provisioner: puppet...
==> monitor: Running Puppet with site.pp...
==> monitor: stdin: is not a tty
==> monitor: Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
==> monitor: Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class php-fpm at /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513/site.pp:127 on node monitor.berlin.freifunk.net
==> monitor: Wrapped exception:
==> monitor: Could not find declared class php-fpm
==> monitor: Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class php-fpm at /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513/site.pp:127 on node monitor.berlin.freifunk.net

Network configuration

Maybe we should add the network configuration to puppet? Important file is /etc/network/interfaces

remove openvpn port redirect

The current iptables rules contain a two rules that redirect traffic from port 80 etc. to the openvpn ports. I don't think we need these rules. We should remove them.

create permanent redirects to https

Where apropriate we should add a permanent https redirect from http. For e.g. the buildbot nginx configuration this is a problem because the router wget version does not support https.

openvpn: check if --ifconfig-pool-persist is necessary

Check if we need a 'pool-file'. If there is no reason to have a pool file we should disable it in the configuration. The configuration option:

--ifconfig-pool-persist file [seconds]
              Persist/unpersist ifconfig-pool data to file, at seconds intervals (default=600), as
              well as on program startup and shutdown.

              The goal of this option is  to  provide  a  long-term  association  between  clients
              (denoted  by their common name) and the virtual IP address assigned to them from the
              ifconfig-pool.  Maintaining a long-term association is good for clients  because  it
              allows them to effectively use the --persist-tun option.

              file is a comma-delimited ASCII file, formatted as <Common-Name>,<IP-address>.

              If seconds = 0, file will be treated as read-only.  This is useful if you would like
              to treat file as a configuration file.

              Note that the entries in this file are treated by OpenVPN as suggestions only, based
              on  past  associations  between a common name and IP address.  They do not guarantee
              that the given common name will always receive the given IP address.   If  you  want
              guaranteed assignment, use --ifconfig-push

decide on a logging strategy for http servers

We should decide on a logging stragegie for our http servers and implement this strategie on all http servers via puppet. At the moment the access and error log are piped to /dev/null.

@cholin suggested that we keep a small error log, e.g. for a day. I guess this is usefull for debugging. I assumed in my initial configuration that we can enable the error log temporarily if we need it. Do you think this is not enough?

If we need to manage logs we can use the puppet logrotate module:

https://github.com/rodjek/puppet-logrotate/

do a release upgrade

A new long term support release is available for our ubuntu host. We should create a list of affected machines and start upgrading.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.