{ "info": { "author": "Pierre-Yves Langlois", "author_email": "pierreyves.langlois@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: BSD License", "Operating System :: Unix", "Programming Language :: Python", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "uadm\n====\n\nUADM - Ubuntu administration scripts. This project aims to use python to automate server administration task and notify the administrator by mail when things went wrong. It contains precoded script like: update os, backup directories on a remote samba server, auto reinstall vmware tools on new kernel, create a new apache site with openssh chroot... \n\n# Prerequisite \n\n- Centrify [optionnal] \n\n# Installation \n\n>sudo apt-get install python-pip \n>sudo pip install uadm \n\n## Edit the config file \n>sudo nano /etc/uadm/uadm.conf \n\n## updateos\n>sudo nano /etc/crontab \nAdd this line at the ends of the file: \n> 05 6 * * 2-4 root uadm updateos \n\n## newsite script with centrify and auto_mount\n\nActivate pam_script for auto_mount \n> sudo nano /etc/pam.d/common-session \nAdd this line before \"session\trequired pam_unix.so\" \n> session required pam_script.so runas=root \n\nCreate empty open and close script \n> sudo bash -c \"echo '#! /bin/bash' > /usr/share/libpam-script/pam_script_ses_open\" \n> sudo bash -c \"echo '#! /bin/bash' > /usr/share/libpam-script/pam_script_ses_close\" \n> sudo chmod +x /usr/share/libpam-script/pam_script_ses* \n\nLinking uadm pam_script_ses_open \n> sudo rm /usr/share/libpam-script/pam_script_ses_open \n> sudo ln -s /etc/uadm/scripts/pam_script_ses_open.py /usr/share/libpam-script/pam_script_ses_open \n\nsftp chroot \n> sudo nano /etc/ssh/sshd_config \n> Match Group \"*,!sudo,!domain admins\" \n> ChrootDirectory /home/%u \n> ForceCommand internal-sftp \n> AllowTCPForwarding no \n> X11Forwarding no \n\n# Upgrade\n\n>sudo pip install --upgrade uadm \n\n;)\n\n# Usage\n\nEdit the file /etc/uadm/uadm.conf to match your own reality! \nCreate your script in /etc/uadm/scripts/myscript based on /etc/uadm/scripts/example.py \nCall your script with: \n>sudo uadm myscript \n\n# Work in progress!!\n\nThis is a work in progress. Any suggestion for a cleaner deployment or new scripts is welcome! https://github.com/pylanglois/uadm \n\n# Known Issue:\n\n## newsite script\n\nWhen using centrify, you need to manually add the group in /etc/centrifydc/groups.allow for each site", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pylanglois/uadm", "keywords": "uadm ubuntu administration script", "license": "Copyright (c) Pierre-Yves Langlois and all contributors.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, \n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright \n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of UADM - Ubuntu administration scripts nor\n the names of its contributors may be used to endorse or promote products\n derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "uadm", "package_url": "https://pypi.org/project/uadm/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/uadm/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pylanglois/uadm" }, "release_url": "https://pypi.org/project/uadm/0.7.5/", "requires_dist": null, "requires_python": null, "summary": "UADM - Ubuntu administration scripts. A set of script that allows to automate task and notify the administrator by mail when thing went wrong. Update os, backup directories on a remote samba server, auto reinstall vmware tools on new kernel.", "version": "0.7.5" }, "last_serial": 801173, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "2fe2472a92d79eafa622d7634b005777", "sha256": "72f23e53a17d9c5f1bff78492a8b84adbcd50063908e0cba86522b05df4dbd0f" }, "downloads": -1, "filename": "uadm-0.5.0-py2.7.egg", "has_sig": false, "md5_digest": "2fe2472a92d79eafa622d7634b005777", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 26324, "upload_time": "2012-06-19T23:56:48", "url": "https://files.pythonhosted.org/packages/b9/1c/5677fdec9a2779db6b4167c7eabfdf307c50442d4f9911a6a9c1f4b6097f/uadm-0.5.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8f779d16b77b801d1d641189aaad48c0", "sha256": "67bd66d60d63e300f70a6bad356bbe6a82e90f13bfcdd883528df36bdc231455" }, "downloads": -1, "filename": "uadm-0.5.0.tar.gz", "has_sig": false, "md5_digest": "8f779d16b77b801d1d641189aaad48c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8385, "upload_time": "2012-06-19T23:56:47", "url": "https://files.pythonhosted.org/packages/66/b7/efd9e5e4e1e3ae8da314a5b18ccf11b39ae3c98d839f4507b954e6f38702/uadm-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "8b0a4d99b0e4474d75becf833a086e42", "sha256": "015239247718042c61b9cea2cc2e0f6a4c74a1668c76ba9518bca2c0eaa6d83d" }, "downloads": -1, "filename": "uadm-0.6.0-py2.7.egg", "has_sig": false, "md5_digest": "8b0a4d99b0e4474d75becf833a086e42", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 28224, "upload_time": "2012-06-21T23:01:52", "url": "https://files.pythonhosted.org/packages/e9/79/b1d23ae0caf7ae2a45f44ca94c5cf867813b43d239dfb1ff4007ede1f55d/uadm-0.6.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "1349f226f4fdc38555731fd89acb7b42", "sha256": "44e57597de66b7c0bed4be5a8e430abe6b1b1c86f5746b55f01e6a6d4e021c8c" }, "downloads": -1, "filename": "uadm-0.6.0.tar.gz", "has_sig": false, "md5_digest": "1349f226f4fdc38555731fd89acb7b42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11186, "upload_time": "2012-06-21T23:01:51", "url": "https://files.pythonhosted.org/packages/22/3c/2db7917cce8ac2a09812c9b7db6c3ed176d4f1897e2b79fae71a09fc562e/uadm-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "c8685eb13d2620847b10900a4531bb87", "sha256": "0aca603ba7615dc90b785dcfcf5aa8b0a311d726975f285aabdd0382ac822ef1" }, "downloads": -1, "filename": "uadm-0.6.1-py2.7.egg", "has_sig": false, "md5_digest": "c8685eb13d2620847b10900a4531bb87", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 28386, "upload_time": "2012-06-21T23:18:00", "url": "https://files.pythonhosted.org/packages/df/7a/4bcc447fbc6de20a46f7175c2200455a2e06b9800338211db27934272c5d/uadm-0.6.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "cc4a4c4a0b49ff14dd5f6c71a3e9f979", "sha256": "b7610dfb7b5aba0b9095f02de2a3682d7d3d46e0ae33efa96ed779e17968409c" }, "downloads": -1, "filename": "uadm-0.6.1.tar.gz", "has_sig": false, "md5_digest": "cc4a4c4a0b49ff14dd5f6c71a3e9f979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11416, "upload_time": "2012-06-21T23:18:00", "url": "https://files.pythonhosted.org/packages/9f/8a/50d3b03100402bc24639bd27125d5f2d07a4ffc200ecd4eba2b1af751bf3/uadm-0.6.1.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "4540755422fc446bf3d69425a8e5197f", "sha256": "48a9e9028884c805fe8abc824120351dc1beb35aafd2c8d3fea041d9af8d2c5e" }, "downloads": -1, "filename": "uadm-0.7.1-py2.7.egg", "has_sig": false, "md5_digest": "4540755422fc446bf3d69425a8e5197f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 31884, "upload_time": "2012-07-05T18:00:03", "url": "https://files.pythonhosted.org/packages/12/3b/99efb04505c0c4f3efcd29a67e1993a3c7636f449971b0add78f3f85237a/uadm-0.7.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3ad4c12166676d7224f1149f19b7a75b", "sha256": "8fcbc5863345d20abea7e9e3753055c71b89ed1d8d0b482611b200e493bc1336" }, "downloads": -1, "filename": "uadm-0.7.1.tar.gz", "has_sig": false, "md5_digest": "3ad4c12166676d7224f1149f19b7a75b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12869, "upload_time": "2012-07-05T17:59:59", "url": "https://files.pythonhosted.org/packages/38/3f/a8eb184aa9e5829e05c8c6afb0b1963eb9c0e1e3ce87165ccf1ef2878668/uadm-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "285d2522b9f876a2e81fb85b245ae1a1", "sha256": "d21695a9dee73399545d8be0dd200d5768f4de00bfece7821e2563952ec0e20b" }, "downloads": -1, "filename": "uadm-0.7.2-py2.7.egg", "has_sig": false, "md5_digest": "285d2522b9f876a2e81fb85b245ae1a1", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 31940, "upload_time": "2012-07-09T15:40:24", "url": "https://files.pythonhosted.org/packages/e4/a7/2d64234c1907e950e2bcbb10c3b28b4c0c77093c403f51c3614db082d611/uadm-0.7.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "287ee78d07f0ad48353acb353fff1e0a", "sha256": "d62c7997f12faa6d40945e2b081aadc49d8777aa6a624c45aeaf6e9a82554872" }, "downloads": -1, "filename": "uadm-0.7.2.tar.gz", "has_sig": false, "md5_digest": "287ee78d07f0ad48353acb353fff1e0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12904, "upload_time": "2012-07-09T15:40:23", "url": "https://files.pythonhosted.org/packages/99/eb/1ee0890e80e563b4eccee43ce6b02ff510d34e457670b3e3de1be285b751/uadm-0.7.2.tar.gz" } ], "0.7.3": [ { "comment_text": "", "digests": { "md5": "f2def916530f39c73444ee54b4d3c1aa", "sha256": "45e12924997ad0ba1429b45cfdaa9a8484f4a0010b9ad4cb172ed6cc23f438e2" }, "downloads": -1, "filename": "uadm-0.7.3-py2.7.egg", "has_sig": false, "md5_digest": "f2def916530f39c73444ee54b4d3c1aa", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 31987, "upload_time": "2012-07-09T17:19:29", "url": "https://files.pythonhosted.org/packages/86/8e/5dd71458818ec83615da1aab9d2876e035250cee58e4088ea6d02d64dc85/uadm-0.7.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8e374ae79ff5e1c1a9c3937cb6340a59", "sha256": "86638409e81919bc5749ec4f38b4857b2704cde9f149133274803ecd027d0796" }, "downloads": -1, "filename": "uadm-0.7.3.tar.gz", "has_sig": false, "md5_digest": "8e374ae79ff5e1c1a9c3937cb6340a59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12929, "upload_time": "2012-07-09T17:19:27", "url": "https://files.pythonhosted.org/packages/31/e9/e57cae619d287d7dcf20ed14d040be4454d03760617c8947e1810b0987a7/uadm-0.7.3.tar.gz" } ], "0.7.4": [ { "comment_text": "", "digests": { "md5": "af8a1a8a78724fd99a45ccae7f86b8a1", "sha256": "3d12c2d177604456052c51fe32df81fa2022b95851f74683def7e507c2a3bc97" }, "downloads": -1, "filename": "uadm-0.7.4-py2.7.egg", "has_sig": false, "md5_digest": "af8a1a8a78724fd99a45ccae7f86b8a1", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 31987, "upload_time": "2012-07-09T17:40:42", "url": "https://files.pythonhosted.org/packages/c1/5a/f9faa7ffd62828221514c9acc7a1a6b78417c4e1ec1fc39571beb8d7b8f9/uadm-0.7.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "1abd20d3edbb6c4ea85b61f120564009", "sha256": "2dcc8d88e9a7d80184fe1108cedbc06ebba3e6192dab6d859ae25f8bc23605f5" }, "downloads": -1, "filename": "uadm-0.7.4.tar.gz", "has_sig": false, "md5_digest": "1abd20d3edbb6c4ea85b61f120564009", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12928, "upload_time": "2012-07-09T17:40:40", "url": "https://files.pythonhosted.org/packages/b3/fd/8ac98e85964d01692fe09dddbb1e2c483756d938ee97c653a7a6f426ab84/uadm-0.7.4.tar.gz" } ], "0.7.5": [ { "comment_text": "", "digests": { "md5": "1f2f79d92250f9846864093d12f5537f", "sha256": "a9652acf44c05e44499ae9774a9cd9248f77d120eb51571c90790f55d564492e" }, "downloads": -1, "filename": "uadm-0.7.5-py2.7.egg", "has_sig": false, "md5_digest": "1f2f79d92250f9846864093d12f5537f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 32257, "upload_time": "2012-07-09T17:55:06", "url": "https://files.pythonhosted.org/packages/16/2b/dd40b6ed9690a2512daee051c8d80af6119705432479ebc9b5d691c5419e/uadm-0.7.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "995f2454c05e23090345c22485156269", "sha256": "c0e1d7a8ad54c4f8aee1b5efbadf81104ba5b4efbadf0835d4614a9e2bb71056" }, "downloads": -1, "filename": "uadm-0.7.5.tar.gz", "has_sig": false, "md5_digest": "995f2454c05e23090345c22485156269", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13445, "upload_time": "2012-07-09T17:55:04", "url": "https://files.pythonhosted.org/packages/ef/95/5a51bc5cc57478ae33c686fb6310e3ca1fda2364f47020312f360a67da20/uadm-0.7.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f2f79d92250f9846864093d12f5537f", "sha256": "a9652acf44c05e44499ae9774a9cd9248f77d120eb51571c90790f55d564492e" }, "downloads": -1, "filename": "uadm-0.7.5-py2.7.egg", "has_sig": false, "md5_digest": "1f2f79d92250f9846864093d12f5537f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 32257, "upload_time": "2012-07-09T17:55:06", "url": "https://files.pythonhosted.org/packages/16/2b/dd40b6ed9690a2512daee051c8d80af6119705432479ebc9b5d691c5419e/uadm-0.7.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "995f2454c05e23090345c22485156269", "sha256": "c0e1d7a8ad54c4f8aee1b5efbadf81104ba5b4efbadf0835d4614a9e2bb71056" }, "downloads": -1, "filename": "uadm-0.7.5.tar.gz", "has_sig": false, "md5_digest": "995f2454c05e23090345c22485156269", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13445, "upload_time": "2012-07-09T17:55:04", "url": "https://files.pythonhosted.org/packages/ef/95/5a51bc5cc57478ae33c686fb6310e3ca1fda2364f47020312f360a67da20/uadm-0.7.5.tar.gz" } ] }