pax_global_header00006660000000000000000000000064145164311220014511gustar00rootroot0000000000000052 comment=a1e84a7e58e535658f681731b66eca7b71c095a2 python-augeas-1.2.0/000077500000000000000000000000001451643112200142755ustar00rootroot00000000000000python-augeas-1.2.0/.gitignore000066400000000000000000000021621451643112200162660ustar00rootroot00000000000000# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python env/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ *.egg-info/ .installed.cfg *.egg # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *,cover .hypothesis/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # Jupyter Notebook .ipynb_checkpoints # pyenv .python-version # celery beat schedule file celerybeat-schedule # SageMath parsed files *.sage.py # dotenv .env # virtualenv .venv venv/ ENV/ # Spyder project settings .spyderproject # Rope project settings .ropeproject # mkdocs documentation /site # augeas logs *.out python-augeas-1.2.0/.travis.yml000066400000000000000000000012201451643112200164010ustar00rootroot00000000000000language: python python: - 2.7 - 3.5 - 3.6 - 3.7 - 3.8 - 3.9 - pypy2 - pypy3 notifications: {} dist: focal install: - git clone --depth 1 https://github.com/hercules-team/augeas.git libaugeas - bash -c 'cd libaugeas ; ./autogen.sh ; ./configure --prefix=/usr; make; sudo make install' - pip install . script: make check deploy: provider: pypi user: the_drow password: secure: FAsA8tIeTBhQQsJflaUwlE8XLIBjPMdmoT8WRVNkFght6ANdaW7+W9HznQvPc8qMbOpT8/K6ToTd8bIb678VRPhzxBkmpStj78wPPET5Q8MANakik73azqfvu6OMKXwpbcLtbaeeqZkRE5LP0ueYyGKtyyvR7iGtBmJbawYiEjo= on: tags: true distributions: sdist bdist_wheel repo: hercules-team/python-augeas python-augeas-1.2.0/AUTHORS000066400000000000000000000004031451643112200153420ustar00rootroot00000000000000augeas is written by: David Lutterkort python-augeas is written by: Nathaniel McCallum Jeff Schroeder Harald Hoyer Nils Philippsen python-augeas-1.2.0/COPYING000066400000000000000000000636421451643112200153430ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! python-augeas-1.2.0/MANIFEST.in000066400000000000000000000002041451643112200160270ustar00rootroot00000000000000include Makefile include python-augeas.spec include COPYING include AUTHORS include test/Makefile recursive-include test/testroot * python-augeas-1.2.0/Makefile000066400000000000000000000011221451643112200157310ustar00rootroot00000000000000PREFIX := /usr VERSION = $(shell grep version setup.py|sed -e "s/^[^']*//;s/[',]//g;") all: build clean: PREFIX=$(PREFIX) python setup.py clean rm -f augeas.py* distclean: clean rm -fr build dist MANIFEST build: PREFIX=$(PREFIX) python setup.py build install: PREFIX=$(PREFIX) python setup.py install sdist: PREFIX=$(PREFIX) python setup.py sdist check: PREFIX=$(PREFIX) python setup.py test srpm: sdist cp python-augeas.spec dist rpmbuild -bs --define "_srcrpmdir ." --define '_sourcedir dist' dist/python-augeas.spec .PHONY: sdist install build clean check distclean srpm python-augeas-1.2.0/README.md000066400000000000000000000006461451643112200155620ustar00rootroot00000000000000# Python Augeas Bindings [![PyPi Version](https://img.shields.io/pypi/v/python-augeas)](https://pypi.org/project/python-augeas/) [![PyPi Downloads](https://img.shields.io/pypi/dd/python-augeas)](https://pypi.org/project/python-augeas/) [![Build Status](https://img.shields.io/travis/hercules-team/python-augeas)](https://travis-ci.org/hercules-team/python-augeas) Pure python bindings for [Augeas](http://augeas.net/). python-augeas-1.2.0/augeas/000077500000000000000000000000001451643112200155425ustar00rootroot00000000000000python-augeas-1.2.0/augeas/__init__.py000066400000000000000000000770731451643112200176710ustar00rootroot00000000000000""" Augeas is a library for programmatically editing configuration files. Augeas parses configuration files into a tree structure, which it exposes through its public API. Changes made through the API are written back to the initially read files. The transformation works very hard to preserve comments and formatting details. It is controlled by *lens* definitions that describe the file format and the transformation into a tree. """ # # Copyright (C) 2008 Nathaniel McCallum # Copyright (C) 2008 Jeff Schroeder # Copyright (C) 2009 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # # Author: Nathaniel McCallum from sys import version_info as _pyver from _augeas import ffi, lib __author__ = "Nathaniel McCallum " __credits__ = """Jeff Schroeder Harald Hoyer - initial python bindings, packaging Nils Philippsen """ PY3 = _pyver >= (3,) AUGENC = 'utf8' if PY3: string_types = str else: string_types = basestring def enc(st): if st: return st.encode(AUGENC) else: return b'' def dec(st): if st: return st.decode(AUGENC) else: return b'' class AugeasIOError(IOError): def __init__(self, ec, fullmessage, msg, minor, details, *args): self.message = fullmessage super(AugeasIOError, self).__init__(fullmessage, *args) self.error = ec self.msg = msg self.minor = minor self.details = details class AugeasRuntimeError(RuntimeError): def __init__(self, ec, fullmessage, msg, minor, details, *args): self.message = fullmessage super(AugeasRuntimeError, self).__init__(fullmessage, *args) self.error = ec self.msg = msg self.minor = minor self.details = details class AugeasValueError(ValueError): def __init__(self, ec, fullmessage, msg, minor, details, *args): self.message = fullmessage super(AugeasValueError, self).__init__(fullmessage, *args) self.error = ec self.msg = msg self.minor = minor self.details = details class Augeas(object): """ Class wrapper for the Augeas library. """ # Augeas Flags NONE = 0 #: Keep the original file with a :samp:`.augsave` extension SAVE_BACKUP = 1 << 0 #: Save changes into a file with extension :samp:`.augnew`, and do not #: overwrite the original file. Takes precedence over :attr:`SAVE_BACKUP` SAVE_NEWFILE = 1 << 1 #: Typecheck lenses; since it can be very expensive it is not done by #: default TYPE_CHECK = 1 << 2 #: Do not use the builtin load path for modules NO_STDINC = 1 << 3 #: Make save a no-op process, just record what would have changed SAVE_NOOP = 1 << 4 #: Do not load the tree from :func:`~augeas.Augeas` NO_LOAD = 1 << 5 NO_MODL_AUTOLOAD = 1 << 6 #: Track the span in the input of nodes ENABLE_SPAN = 1 << 7 # Augeas errors AUG_NOERROR = 0 AUG_ENOMEM = 1 AUG_EINTERNAL = 2 AUG_EPATHX = 3 AUG_ENOMATCH = 4 AUG_EMMATCH = 5 AUG_ESYNTAX = 6 AUG_ENOLENS = 7 AUG_EMXFM = 8 AUG_ENOSPAN = 9 AUG_EMVDESC = 10 AUG_ECMDRUN = 11 AUG_EBADARG = 12 AUG_ELABEL = 13 AUG_ECPDESC = 14 def _optffistring(self, cffistr): if cffistr == ffi.NULL: return None else: return dec(ffi.string(cffistr)) def _raise_error(self, errorclass, errmsg, *args): ec = lib.aug_error(self.__handle) if ec == Augeas.AUG_ENOMEM: raise MemoryError() msg = self._optffistring(lib.aug_error_message(self.__handle)) fullmessage = (errmsg + ": " + msg) % args minor = self._optffistring(lib.aug_error_minor_message(self.__handle)) if minor: fullmessage += ": " + minor details = self._optffistring(lib.aug_error_details(self.__handle)) if details: fullmessage += ": " + details raise errorclass(ec, fullmessage, msg, minor, details) def __init__(self, root=None, loadpath=None, flags=NONE): """ Initialize the library. :param root: the filesystem root. If `root` is :py:obj:`None`, use the value of the environment variable :envvar:`AUGEAS_ROOT`. If that doesn't exist either, use :samp:`/`. :type root: str or None :param loadpath: a colon-separated list of directories that modules should be searched in. This is in addition to the standard load path and the directories in :envvar:`AUGEAS_LENS_LIB`. :type loadpath: str or None :param flags: a combination of values of :attr:`SAVE_BACKUP`, :attr:`SAVE_NEWFILE`, :attr:`TYPE_CHECK`, :attr:`NO_STDINC`, :attr:`SAVE_NOOP`, :attr:`NO_LOAD`, :attr:`NO_MODL_AUTOLOAD`, and :attr:`ENABLE_SPAN`. :type flags: int or :attr:`NONE` """ # Sanity checks if not isinstance(root, string_types) and root is not None: raise TypeError("root MUST be a string or None!") if not isinstance(loadpath, string_types) and loadpath is not None: raise TypeError("loadpath MUST be a string or None!") if not isinstance(flags, int): raise TypeError("flag MUST be a flag!") root = enc(root) if root else ffi.NULL loadpath = enc(loadpath) if loadpath else ffi.NULL # Create the Augeas object self.__handle = ffi.gc(lib.aug_init(root, loadpath, flags), lambda x: self.close()) if not self.__handle: raise RuntimeError("Unable to create Augeas object!") def get(self, path): """ Lookup the value associated with `path`. It is an error if more than one node matches `path`. :returns: the value at the path specified :rtype: str """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Create the char * value value = ffi.new("char*[]", 1) # Call the function and pass value by reference (char **) ret = lib.aug_get(self.__handle, enc(path), value) if ret < 0: self._raise_error(AugeasValueError, "Augeas.get() failed") return self._optffistring(value[0]) def label(self, path): """ Lookup the label associated with `path`. It is an error if more than one node matches `path`. :returns: the label of the path specified :rtype: str """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Create the char * value label = ffi.new("char*[]", 1) # Call the function and pass value by reference (char **) ret = lib.aug_label(self.__handle, enc(path), label) if ret < 0: self._raise_error(AugeasValueError, "Augeas.label() failed") return self._optffistring(label[0]) def set(self, path, value): """ Set the value associated with `path` to `value`. Intermediate entries are created if they don't exist. It is an error if more than one node matches `path`. """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not isinstance(value, string_types) and value is not None: raise TypeError("value MUST be a string or None!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_set(self.__handle, enc(path), enc(value)) if ret != 0: self._raise_error(AugeasValueError, "Augeas.set() failed") def setm(self, base, sub, value): """ Set the value of multiple nodes in one operation. Find or create a node matching `sub` by interpreting `sub` as a path expression relative to each node matching `base`. `sub` may be :py:obj:`None`, in which case all the nodes matching `base` will be modified. """ # Sanity checks if type(base) != str: raise TypeError("base MUST be a string!") if type(sub) != str and sub is not None: raise TypeError("sub MUST be a string or None!") if type(value) != str and value is not None: raise TypeError("value MUST be a string or None!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_setm( self.__handle, enc(base), enc(sub), enc(value)) if ret < 0: self._raise_error(AugeasValueError, "Augeas.setm() failed") return ret def text_store(self, lens, node, path): """ Use the value of node `node` as a string and transform it into a tree using the lens `lens` and store it in the tree at `path`, which will be overwritten. `path` and `node` are path expressions. """ # Sanity checks if not isinstance(lens, string_types): raise TypeError("lens MUST be a string!") if not isinstance(node, string_types): raise TypeError("node MUST be a string!") if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_text_store( self.__handle, enc(lens), enc(node), enc(path)) if ret != 0: self._raise_error(AugeasValueError, "Augeas.text_store() failed") return ret def text_retrieve(self, lens, node_in, path, node_out): """ Transform the tree at `path` into a string using lens `lens` and store it in the node `node_out`, assuming the tree was initially generated using the value of node `node_in`. `path`, `node_in`, and `node_out` are path expressions. """ # Sanity checks if not isinstance(lens, string_types): raise TypeError("lens MUST be a string!") if not isinstance(node_in, string_types): raise TypeError("node_in MUST be a string!") if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not isinstance(node_out, string_types): raise TypeError("node_out MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_text_retrieve( self.__handle, enc(lens), enc(node_in), enc(path), enc(node_out)) if ret != 0: self._raise_error(AugeasValueError, "Augeas.text_retrieve() failed") return ret def defvar(self, name, expr): """ Define a variable `name` whose value is the result of evaluating `expr`. If a variable `name` already exists, its name will be replaced with the result of evaluating `expr`. If `expr` is :py:obj:`None`, the variable `name` will be removed if it is defined. Path variables can be used in path expressions later on by prefixing them with :samp:`$`. """ # Sanity checks if type(name) != str: raise TypeError("name MUST be a string!") if type(expr) != str and expr is not None: raise TypeError("expr MUST be a string or None!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_defvar(self.__handle, enc(name), enc(expr)) if ret < 0: self._raise_error(AugeasValueError, "Augeas.defvar() failed") return ret def defnode(self, name, expr, value): """ Define a variable `name` whose value is the result of evaluating `expr`, which must not be :py:obj:`None` and evaluate to a nodeset. If a variable `name` already exists, its name will be replaced with the result of evaluating `expr`. If `expr` evaluates to an empty nodeset, a node is created, equivalent to calling ``set(expr, value)`` and `name` will be the nodeset containing that single node. """ # Sanity checks if type(name) != str: raise TypeError("name MUST be a string!") if type(expr) != str: raise TypeError("expr MUST be a string!") if type(value) != str: raise TypeError("value MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_defnode( self.__handle, enc(name), enc(expr), enc(value), ffi.NULL) if ret < 0: self._raise_error(AugeasValueError, "Augeas.defnode() failed") return ret def move(self, src, dst): """ Move the node `src` to `dst`. `src` must match exactly one node in the tree. `dst` must either match exactly one node in the tree, or may not exist yet. If `dst` exists already, it and all its descendants are deleted before moving `src` there. If `dst` does not exist yet, it and all its missing ancestors are created. """ # Sanity checks if not isinstance(src, string_types): raise TypeError("src MUST be a string!") if not isinstance(dst, string_types): raise TypeError("dst MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_mv(self.__handle, enc(src), enc(dst)) if ret != 0: self._raise_error(AugeasValueError, "Augeas.move() failed") def copy(self, src, dst): """ Copy the node `src` to `dst`. `src` must match exactly one node in the tree. `dst` must either match exactly one node in the tree, or may not exist yet. If `dst` exists already, it and all its descendants are deleted before copying `src` there. If `dst` does not exist yet, it and all its missing ancestors are created. """ # Sanity checks if not isinstance(src, string_types): raise TypeError("src MUST be a string!") if not isinstance(dst, string_types): raise TypeError("dst MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_cp(self.__handle, enc(src), enc(dst)) if ret != 0: self._raise_error(AugeasValueError, "Augeas.copy() failed") def rename(self, src, dst): """ Rename the label of all nodes matching `src` to `dst`. """ # Sanity checks if not isinstance(src, string_types): raise TypeError("src MUST be a string!") if not isinstance(dst, string_types): raise TypeError("dst MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_rename(self.__handle, enc(src), enc(dst)) if ret < 0: self._raise_error(AugeasValueError, "Augeas.rename() failed") return ret def insert(self, path, label, before=True): """ Create a new sibling `label` for `path` by inserting into the tree just before `path` (if `before` is :py:obj:`True`) or just after `path` (if `before` is :py:obj:`False`). `path` must match exactly one existing node in the tree, and `label` must be a label, i.e. not contain a :samp:`/`, :samp:`*` or end with a bracketed index :samp:`[N]`. """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not isinstance(label, string_types): raise TypeError("label MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_insert(self.__handle, enc(path), enc(label), before and 1 or 0) if ret != 0: self._raise_error(AugeasValueError, "Augeas.insert() failed") def remove(self, path): """ Remove `path` and all its children. Returns the number of entries removed. All nodes that match `path`, and their descendants, are removed. """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function return lib.aug_rm(self.__handle, enc(path)) def match(self, path): """ Return the matches of the path expression `path`. The returned paths are sufficiently qualified to make sure that they match exactly one node in the current tree. Path expressions use a very simple subset of XPath: the path `path` consists of a number of segments, separated by :samp:`/`; each segment can either be a :samp:`*`, matching any tree node, or a string, optionally followed by an index in brackets, matching tree nodes labelled with exactly that string. If no index is specified, the expression matches all nodes with that label; the index can be a positive number N, which matches exactly the *N*-th node with that label (counting from 1), or the special expression :samp:`last()` which matches the last node with the given label. All matches are done in fixed positions in the tree, and nothing matches more than one path segment. """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") parray = ffi.new('char***') ret = lib.aug_match(self.__handle, enc(path), parray) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.match() failed: %s", path) # Loop through the string array array = parray[0] matches = [] for i in range(ret): if array[i] != ffi.NULL: # Create a python string and append it to our matches list item = ffi.string(array[i]) matches.append(dec(item)) lib.free(array[i]) lib.free(array) return matches def span(self, path): """ Get the span according to input file of the node associated with `path`. If the node is associated with a file, a tuple of 7 elements is returned: ``(filename, label_start, label_end, value_start, value_end, span_start, span_end)``. If the node associated with `path` doesn't belong to a file or is doesn't exists, :py:obj:`ValueError` is raised. :rtype: tuple(str, int, int, int, int, int, int) """ # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # TODO: Rewrite this filename = ffi.new('char **') label_start = ffi.new('unsigned int *') label_end = ffi.new('unsigned int *') value_start = ffi.new('unsigned int *') value_end = ffi.new('unsigned int *') span_start = ffi.new('unsigned int *') span_end = ffi.new('unsigned int *') ret = lib.aug_span(self.__handle, enc(path), filename, label_start, label_end, value_start, value_end, span_start, span_end) if (ret < 0): self._raise_error(AugeasValueError, "Augeas.span() failed") fname = self._optffistring(filename[0]) return (fname, int(label_start[0]), int(label_end[0]), int(value_start[0]), int(value_end[0]), int(span_start[0]), int(span_end[0])) def save(self): """ Write all pending changes to disk. Only files that had any changes made to them are written. If :attr:`SAVE_NEWFILE` is set in the creation `flags`, create changed files as new files with the extension :samp:`.augnew`, and leave the original file unmodified. Otherwise, if :attr:`SAVE_BACKUP` is set in the creation `flags`, move the original file to a new file with extension :samp:`.augsave`. If neither of these flags is set, overwrite the original file. """ # Sanity checks if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Call the function ret = lib.aug_save(self.__handle) if ret != 0: self._raise_error(AugeasIOError, "Augeas.save() failed") def load(self): """ Load files into the tree. Which files to load and what lenses to use on them is specified under :samp:`/augeas/load` in the tree; each entry :samp:`/augeas/load/NAME` specifies a 'transform', by having itself exactly one child 'lens' and any number of children labelled 'incl' and 'excl'. The value of :samp:`NAME` has no meaning. The 'lens' grandchild of :samp:`/augeas/load` specifies which lens to use, and can either be the fully qualified name of a lens :samp:`Module.lens` or :samp:`@Module`. The latter form means that the lens from the transform marked for autoloading in MODULE should be used. The 'incl' and 'excl' grandchildren of :samp:`/augeas/load` indicate which files to transform. Their value are used as glob patterns. Any file that matches at least one 'incl' pattern and no 'excl' pattern is transformed. The order of 'incl' and 'excl' entries is irrelevant. When AUG_INIT is first called, it populates :samp:`/augeas/load` with the transforms marked for autoloading in all the modules it finds. Before loading any files, :func:`load` will remove everything underneath :samp:`/augeas/files` and :samp:`/files`, regardless of whether any entries have been modified or not. """ # Sanity checks if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") ret = lib.aug_load(self.__handle) if ret != 0: self._raise_error(AugeasRuntimeError, "Augeas.load() failed") def load_file(self, filename): # Sanity checks if not isinstance(filename, string_types): raise TypeError("filename MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") ret = lib.aug_load_file(self.__handle, enc(filename)) if ret != 0: self._raise_error(AugeasRuntimeError, "Augeas.load_file() failed") def source(self, path): # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Create the char * value value = ffi.new("char*[]", 1) ret = lib.aug_source(self.__handle, enc(path), value) if ret != 0: self._raise_error(AugeasRuntimeError, "Augeas.source() failed") return self._optffistring(value[0]) def srun(self, out, command): # Sanity checks if not hasattr(out, 'write'): raise TypeError("out MUST be a file!") if not isinstance(command, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") ret = lib.aug_srun(self.__handle, out, enc(command)) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.srun() failed (%d)", ret) def preview(self, path): # Sanity checks if not isinstance(path, string_types): raise TypeError("path MUST be a string!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") # Create the char * value out = ffi.new("char*[]", 1) ret = lib.aug_preview(self.__handle, enc(path), out) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.preview() failed") return self._optffistring(out[0]) def ns_attr(self, name, index): # Sanity checks if not isinstance(name, string_types): raise TypeError("name MUST be a string!") if not isinstance(index, int): raise TypeError("index MUST be an integer!") value = ffi.new("char*[]", 1) label = ffi.new("char*[]", 1) file_path = ffi.new("char*[]", 1) ret = lib.aug_ns_attr(self.__handle, enc(name), index, value, label, file_path) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.ns_attr() failed") return (self._optffistring(value[0]), self._optffistring(label[0]), self._optffistring(file_path[0]) ) def ns_label(self, name, index): # Sanity checks if not isinstance(name, string_types): raise TypeError("name MUST be a string!") if not isinstance(index, int): raise TypeError("index MUST be an integer!") # Create the char * value label = ffi.new("char*[]", 1) labelindex = ffi.new("int*", 1) ret = lib.aug_ns_label(self.__handle, enc(name), index, label, labelindex) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.ns_label() failed") return (self._optffistring(label[0]), labelindex[0] ) def ns_value(self, name, index): # Sanity checks if not isinstance(name, string_types): raise TypeError("name MUST be a string!") if not isinstance(index, int): raise TypeError("index MUST be an integer!") # Create the char * value value = ffi.new("char*[]", 1) ret = lib.aug_ns_value(self.__handle, enc(name), index, value) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.ns_value() failed") return self._optffistring(value[0]) def ns_count(self, name): # Sanity checks if not isinstance(name, string_types): raise TypeError("name MUST be a string!") ret = lib.aug_ns_count(self.__handle, enc(name)) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.ns_count() failed") return ret def ns_path(self, name, index): # Sanity checks if not isinstance(name, string_types): raise TypeError("name MUST be a string!") if not isinstance(index, int): raise TypeError("index MUST be an integer!") # Create the char * value path = ffi.new("char*[]", 1) ret = lib.aug_ns_path(self.__handle, enc(name), index, path) if ret < 0: self._raise_error(AugeasRuntimeError, "Augeas.ns_path() failed") return self._optffistring(path[0]) def clear_transforms(self): """ Clear all transforms beneath :samp:`/augeas/load`. If :func:`load` is called right after this, there will be no files beneath :samp:`/files`. """ self.remove("/augeas/load/*") def add_transform(self, lens, incl, name=None, excl=()): """ Add a transform beneath :samp:`/augeas/load`. :param lens: the (file)name of the lens to use :type lens: str :param incl: one or more glob patterns for the files to transform :type incl: str or list(str) :param name: deprecated parameter :param excl: zero or more glob patterns of files to exclude from transforming :type excl: str or list(str) """ if name: import warnings warnings.warn("name is now deprecated in this function", DeprecationWarning, stacklevel=2) if isinstance(incl, string_types): incl = [incl] if isinstance(excl, string_types): excl = [excl] for i in range(len(incl)): self.transform(lens, incl[i], False) for i in range(len(excl)): self.transform(lens, excl[i], True) def transform(self, lens, file, excl=False): """ Add a transform for `file` using `lens`. `excl` specifies if this the file is to be included (:py:obj:`False`) or excluded (:py:obj:`True`) from the `lens`. The `lens` may be a module name or a full lens name. If a module name is given, then lns will be the lens assumed. """ if not isinstance(lens, string_types): raise TypeError("lens MUST be a string!") if not isinstance(file, string_types): raise TypeError("file MUST be a string!") if not isinstance(excl, bool): raise TypeError("excl MUST be a boolean!") if not self.__handle: raise RuntimeError("The Augeas object has already been closed!") ret = lib.aug_transform(self.__handle, enc(lens), enc(file), excl) if ret != 0: self._raise_error(AugeasRuntimeError, "Augeas.transform() failed") def close(self): """ Close this Augeas instance and free any storage associated with it. After this call, this Augeas instance is invalid and can not be used for any more operations. """ # If we are already closed, return if not self.__handle or self.__handle == ffi.NULL: return # Call the function lib.aug_close(self.__handle) # Mark the object as closed self.__handle = None # for backwards compatibility # pylint: disable-msg=C0103 class augeas(Augeas): """ Compat class, obsolete. Use class Augeas directly. :deprecated: """ def __init__(self, *p, **k): import warnings warnings.warn("use Augeas instead of augeas", DeprecationWarning, stacklevel=2) super(augeas, self).__init__(*p, **k) __all__ = ['Augeas', 'augeas'] python-augeas-1.2.0/augeas/ffi.py000066400000000000000000000065371451643112200166730ustar00rootroot00000000000000import os import subprocess from cffi import FFI def get_include_dirs(): XML2_CONFIG = os.environ.get('XML2_CONFIG', 'xml2-config') PKG_CONFIG = os.environ.get('PKG_CONFIG', 'pkg-config') try: stdout = subprocess.check_output([XML2_CONFIG, '--cflags']) except (OSError, subprocess.CalledProcessError): try: stdout = subprocess.check_output([PKG_CONFIG, '--cflags', 'libxml-2.0']) except (OSError, subprocess.CalledProcessError): stdout = b'' cflags = stdout.decode('utf-8').split() return [cflag[2:] for cflag in cflags if cflag.startswith('-I')] ffi = FFI() ffi.set_source("_augeas", """ #include """, libraries=['augeas'], include_dirs=get_include_dirs()) ffi.cdef(""" typedef struct augeas augeas; augeas *aug_init(const char *root, const char *loadpath, unsigned int flags); int aug_defvar(augeas *aug, const char *name, const char *expr); int aug_defnode(augeas *aug, const char *name, const char *expr, const char *value, int *created); int aug_get(const augeas *aug, const char *path, const char **value); int aug_label(const augeas *aug, const char *path, const char **label); int aug_set(augeas *aug, const char *path, const char *value); int aug_setm(augeas *aug, const char *base, const char *sub, const char *value); int aug_span(augeas *aug, const char *path, char **filename, unsigned int *label_start, unsigned int *label_end, unsigned int *value_start, unsigned int *value_end, unsigned int *span_start, unsigned int *span_end); int aug_insert(augeas *aug, const char *path, const char *label, int before); int aug_rm(augeas *aug, const char *path); int aug_mv(augeas *aug, const char *src, const char *dst); int aug_cp(augeas *aug, const char *src, const char *dst); int aug_rename(augeas *aug, const char *src, const char *lbl); int aug_match(const augeas *aug, const char *path, char ***matches); int aug_save(augeas *aug); int aug_load(augeas *aug); int aug_text_store(augeas *aug, const char *lens, const char *node, const char *path); int aug_text_retrieve(struct augeas *aug, const char *lens, const char *node_in, const char *path, const char *node_out); int aug_transform(augeas *aug, const char *lens, const char *file, int excl); int aug_source(const augeas *aug, const char *path, char **file_path); int aug_srun(augeas *aug, FILE *out, const char *text); int aug_load_file(augeas *aug, const char *file); int aug_preview(augeas *aug, const char *path, char **out); int aug_ns_attr(const augeas* aug, const char *var, int i, const char **value, const char **label, char **file_path); int aug_ns_label(const augeas *aug, const char *var, int i, const char **label, int *index); int aug_ns_value(const augeas *aug, const char *var, int i, const char **value); int aug_ns_count(const augeas *aug, const char *var); int aug_ns_path(const augeas *aug, const char *var, int i, char **path); void aug_close(augeas *aug); int aug_error(augeas *aug); const char *aug_error_message(augeas *aug); const char *aug_error_minor_message(augeas *aug); const char *aug_error_details(augeas *aug); void free(void *); """) if __name__ == "__main__": ffi.compile(verbose=True) python-augeas-1.2.0/conf.py000066400000000000000000000120361451643112200155760ustar00rootroot00000000000000# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. import os import sys sys.path.insert(0, os.path.abspath('.')) # -- Project information ----------------------------------------------------- project = 'Augeas' copyright = '2008, Nathaniel McCallum' author = 'Nathaniel McCallum' # The short X.Y version version = '1.0.3' # The full version, including alpha/beta/rc tags release = '1.0.3' # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # # source_suffix = ['.rst', '.md'] source_suffix = '.rst' # The master toctree document. master_doc = 'index' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path . exclude_patterns = ['build', '_build', 'Thumbs.db', '.DS_Store'] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'classic' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # # html_theme_options = {} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". # html_static_path = ['_static'] # Custom sidebar templates, must be a dictionary that maps document names # to template names. # # The default sidebars (for documents that don't match any pattern) are # defined by theme itself. Builtin themes are using these templates by # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', # 'searchbox.html']``. # # html_sidebars = {} # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. htmlhelp_basename = 'augeasdoc' # -- Options for LaTeX output ------------------------------------------------ latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # # 'preamble': '', # Latex figure (float) alignment # # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'augeas.tex', 'Augeas Documentation', 'Nathaniel McCallum', 'manual'), ] # -- Options for manual page output ------------------------------------------ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ (master_doc, 'augeas', 'Augeas Documentation', [author], 1) ] # -- Options for Texinfo output ---------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ (master_doc, 'augeas', 'Augeas Documentation', author, 'augeas', 'Pure Python bindings for the augeas library.', 'Miscellaneous'), ] # -- Extension configuration ------------------------------------------------- autodoc_default_options = { 'member-order': 'alphabetical', 'undoc-members': None, } autoclass_content = 'both' intersphinx_mapping = { 'https://docs.python.org/%d' % sys.version_info[0]: None } python-augeas-1.2.0/index.rst000066400000000000000000000004451451643112200161410ustar00rootroot00000000000000Pure Python bindings for the augeas library =========================================== .. toctree:: :maxdepth: 2 :caption: Contents: .. automodule:: augeas .. autoclass:: Augeas :members: Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` python-augeas-1.2.0/python-augeas.spec000066400000000000000000000201411451643112200177330ustar00rootroot00000000000000Name: python-augeas Version: 1.2.0 Release: 1%{?dist} Summary: Python bindings to augeas License: LGPL-2.1-or-later URL: http://augeas.net/ Source0: https://github.com/hercules-team/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: augeas BuildRequires: python3-pytest BuildRequires: python3-cffi %description python-augeas is a set of Python bindings around augeas. %package -n python3-augeas Summary: Python 3 bindings to augeas Requires: augeas-libs Requires: python3-cffi %{?python_provide:%python_provide python3-augeas} %description -n python3-augeas python3-augeas is a set of Python bindings around augeas. %prep %autosetup -p1 %build %{py3_build} %install %{py3_install} %check %pytest %files -n python3-augeas %license COPYING %doc AUTHORS README.md %{python3_sitearch}/_augeas.abi3.so %{python3_sitearch}/augeas/ %{python3_sitearch}/python_augeas-*.egg-info %changelog * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 1.1.0-9 - Rebuilt for Python 3.12 * Thu Feb 23 2023 Rafael Jeffman - 1.1.0-8 - migrated to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Oct 11 2021 Felix Schwarz - 1.1.0-3 - do not install "test" package * Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 29 2021 Greg Swift - 1.1.0-1 - Rebuild latest upstream - Remove merged upstream patch * Thu Jun 03 2021 Python Maint - 0.5.0-24 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.5.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 0.5.0-21 - Rebuilt for Python 3.9 * Thu Apr 02 2020 Pino Toscano - 0.5.0-20 - Backport upstream commit d93e1563add8c40450556b7d74520439ee792bd9 to fix the discovery of location in the test - Execute the tests at build time - Add a simple gating test to execute the test script, and make it gating for the python-augeas source * Thu Jan 30 2020 Fedora Release Engineering - 0.5.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 28 2019 Miro Hrončok - 0.5.0-18 - Subpackage python2-augeas has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Thu Oct 03 2019 Miro Hrončok - 0.5.0-17 - Rebuilt for Python 3.8.0rc1 (#1748018) * Fri Aug 16 2019 Miro Hrončok - 0.5.0-16 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.5.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 16 2018 Miro Hrončok - 0.5.0-12 - Rebuilt for Python 3.7 * Wed Feb 14 2018 Iryna Shcherbina - 0.5.0-11 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.5.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.5.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.5.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 12 2016 Charalampos Stratakis - 0.5.0-7 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5.0-6 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 3 2016 Orion Poplawski - 0.5.0-5 - Modernize spec - Fix python3 package file ownership * Tue Jan 19 2016 Nils Philippsen - use %%global instead of %%define * Fri Nov 06 2015 Robert Kuska - 0.5.0-4 - Rebuilt for Python3.5 rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Sep 22 2014 Tomas Radej - 0.5.0-2 - Added Python 3 subpackage * Thu Sep 04 2014 Greg Swift - 0.5.0-1 - Version 0.5.0 release * Sat Jun 07 2014 Fedora Release Engineering - 0.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Oct 22 2013 Greg Swift - 0.4.1-5 - add python-ctypes dependency (rhbz#1020239) * Sun Aug 04 2013 Fedora Release Engineering - 0.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jan 16 2012 Greg Swift 0.4.1-1 - version 0.4.1 - include egg only on F-9, RHEL-6 and later * Sat Jan 14 2012 Fedora Release Engineering - 0.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Feb 18 2011 Harald Hoyer 0.3.0-7 - only include egg-info, if fedora >=9 or rhel >= 6 Resolves: rhbz#661452 * Tue Feb 08 2011 Fedora Release Engineering - 0.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 21 2010 David Malcolm - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sun Jul 26 2009 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.3.0-2 - Rebuild for Python 2.6 * Tue Sep 09 2008 Harald Hoyer 0.3.0-1 - version 0.3.0 * Thu Jul 03 2008 Harald Hoyer 0.2.1-1 - version 0.2.1 * Wed Jun 11 2008 Harald Hoyer 0.2.0-1 - switched to noarch, dlopen/ python bindings * Mon May 05 2008 Harald Hoyer 0.1.0-4 - version to import in CVS (rhbz#444945) * Mon May 05 2008 Harald Hoyer 0.1.0-3 - set mode of _augeas.so to 0755 * Mon May 05 2008 Harald Hoyer 0.1.0-2 - wildcard to catch egg-info in case it is build * Fri May 02 2008 Harald Hoyer 0.1.0-1 - new version * Wed Apr 16 2008 Harald Hoyer - 0.0.8-1 - initial version python-augeas-1.2.0/setup.py000077500000000000000000000025401451643112200160130ustar00rootroot00000000000000#!/usr/bin/env python """ setup.py file for augeas """ import os from setuptools import setup, find_packages prefix = os.environ.get("prefix", "/usr") name = 'python-augeas' version = '1.2.0' setup(name=name, version=version, author="Harald Hoyer", author_email="augeas-devel@redhat.com", description="""Python bindings for Augeas""", packages=find_packages(exclude=('test',)), setup_requires=["cffi>=1.0.0"], cffi_modules=["augeas/ffi.py:ffi"], install_requires=["cffi>=1.0.0"], zip_safe=False, url="http://augeas.net/", classifiers=[ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], command_options={ 'build_sphinx': { 'project': ('setup.py', name), 'version': ('setup.py', version), 'release': ('setup.py', version), } }, test_suite="test.test_augeas", ) python-augeas-1.2.0/test/000077500000000000000000000000001451643112200152545ustar00rootroot00000000000000python-augeas-1.2.0/test/__init__.py000066400000000000000000000000001451643112200173530ustar00rootroot00000000000000python-augeas-1.2.0/test/test_augeas.py000066400000000000000000000237741451643112200201470ustar00rootroot00000000000000from __future__ import print_function import os import sys import unittest __mydir = os.path.dirname(os.path.abspath(__file__)) if not os.path.isdir(__mydir): __mydir = os.getcwd() sys.path.insert(0, __mydir + "/..") import augeas MYROOT = __mydir + "/testroot" def recurmatch(aug, path): if path: if path != "/": val = aug.get(path) if val: yield (path, val) m = [] if path != "/": aug.match(path) for i in m: for x in recurmatch(aug, i): yield x else: for i in aug.match(path + "/*"): for x in recurmatch(aug, i): yield x class TestAugeas(unittest.TestCase): def test01aGetNone(self): "test aug_get with non-existing path" a = augeas.Augeas(root=MYROOT) self.assertIsNone(a.get("/wrong/path")) del a def test01bGetValue(self): "test aug_get with existing path" a = augeas.Augeas(root=MYROOT) self.assertEqual(a.get("/files/etc/hosts/1/ipaddr"), "127.0.0.1") del a def test01cGetException(self): "test aug_get with incorrect path" a = augeas.Augeas(root=MYROOT) self.assertRaises(ValueError, a.get, "/files//[1]/") del a def test02Match(self): "test aug_match" a = augeas.Augeas(root=MYROOT) matches = a.match("/files/etc/hosts/*") self.assertTrue(matches) for i in matches: for attr in a.match(i+"/*"): self.assertIsNotNone(a.get(attr)) del a def test03PrintAll(self): "print all tree elements" output = open("test03PrintAll.out", "w") a = augeas.Augeas(root=MYROOT) path = "/" matches = recurmatch(a, path) for (p, attr) in matches: print(p, attr, file=output) self.assertIsNotNone(p) self.assertIsNotNone(attr) output.close() def test04Grub(self): "test default setting of grub entry" a = augeas.Augeas(root=MYROOT) num = 0 for entry in a.match("/files/etc/grub.conf/title"): num += 1 self.assertEqual(num, 2) default = int(a.get("/files/etc/grub.conf/default")) self.assertEqual(default, 0) a.set("/files/etc/grub.conf/default", str(1)) a.save() default = int(a.get("/files/etc/grub.conf/default")) self.assertEqual(default, 1) a.set("/files/etc/grub.conf/default", str(0)) a.save() def test05Defvar(self): "test defvar" a = augeas.Augeas(root=MYROOT) a.defvar("hosts", "/files/etc/hosts") matches = a.match("$hosts/*") self.assertTrue(matches) for i in matches: for attr in a.match(i+"/*"): self.assertIsNotNone(a.get(attr)) del a def test06Defnode(self): "test defnode" a = augeas.Augeas(root=MYROOT) a.defnode("bighost", "/files/etc/hosts/50/ipaddr", "192.168.1.1") value = a.get("$bighost") self.assertEqual(value, "192.168.1.1") del a def test07Setm(self): "test setm" a = augeas.Augeas(root=MYROOT) matches = a.match("/files/etc/hosts/*/ipaddr") self.assertTrue(matches) a.setm("/files/etc/hosts", "*/ipaddr", "192.168.1.1") for i in matches: self.assertEqual(a.get(i), "192.168.1.1") del a def test08Span(self): "test span" data = [{"expr": "/files/etc/hosts/1/ipaddr", "f": "hosts", "ls": 0, "le": 0, "vs": 104, "ve": 113, "ss": 104, "se": 113}, {"expr": "/files/etc/hosts/1", "f": "hosts", "ls": 0, "le": 0, "vs": 0, "ve": 0, "ss": 104, "se": 155}, {"expr": "/files/etc/hosts/*[last()]", "f": "hosts", "ls": 0, "le": 0, "vs": 0, "ve": 0, "ss": 155, "se": 202}, {"expr": "/files/etc/hosts/#comment[2]", "f": "hosts", "ls": 0, "le": 0, "vs": 58, "ve": 103, "ss": 56, "se": 104}, {"expr": "/files/etc/hosts", "f": "hosts", "ls": 0, "le": 0, "vs": 0, "ve": 0, "ss": 0, "se": 202}, ] a = augeas.Augeas(root=MYROOT, flags=augeas.Augeas.ENABLE_SPAN) for d in data: r = a.span(d["expr"]) self.assertEqual(os.path.basename(r[0]), d["f"]) self.assertEqual(r[1], d["ls"]) self.assertEqual(r[2], d["le"]) self.assertEqual(r[3], d["vs"]) self.assertEqual(r[4], d["ve"]) self.assertEqual(r[5], d["ss"]) self.assertEqual(r[6], d["se"]) self.assertRaises(ValueError, a.span, "/files") self.assertRaises(ValueError, a.span, "/random") del a def test09TextStore(self): hosts = "192.168.0.1 rtr.example.com router\n" a = augeas.Augeas(root=MYROOT) a.set("/raw/hosts", hosts) a.text_store("Hosts.lns", "/raw/hosts", "/t1") # Test bad lens name self.assertRaises(ValueError, a.text_store, "Notthere.lns", "/raw/hosts", "/t2") def testSetNone(self): a = augeas.Augeas(root=MYROOT) a.set("/raw/hosts", None) def test10TextRetrieve(self): hosts = "192.168.0.1 rtr.example.com router\n" a = augeas.Augeas(root=MYROOT) a.set("/raw/hosts", hosts) a.text_store("Hosts.lns", "/raw/hosts", "/t1") a.text_retrieve("Hosts.lns", "/raw/hosts", "/t1", "/out/hosts") hosts_out = a.get("/out/hosts") self.assertEqual(hosts, hosts_out) # Test bad lens name self.assertRaises(ValueError, a.text_store, "Notthere.lns", "/raw/hosts", "/t2") def test11Rename(self): a = augeas.Augeas(root=MYROOT) a.set("/a/b/c", "value") r = a.rename("/a/b/c", "d") self.assertEqual(r, 1) a.set("/a/e/d", "value2") r = a.rename("/a//d", "x") self.assertEqual(r, 2) self.assertRaises(ValueError, a.rename, "/a/e/x", "a/b") def test12Transform(self): a = augeas.Augeas(root=MYROOT) a.transform("Foo", "/tmp/bar") lens = a.get("/augeas/load/Foo/lens") self.assertEqual(lens, "Foo.lns") incl = a.get("/augeas/load/Foo/incl") self.assertEqual(incl, "/tmp/bar") a.transform("Foo", "/tmp/baz", True) excl = a.get("/augeas/load/Foo/excl") self.assertEqual(excl, "/tmp/baz") def test13AddTransform(self): a = augeas.Augeas(root=MYROOT) a.add_transform("Foo", "/tmp/bar") incl = a.get("/augeas/load/Foo/incl") self.assertEqual(incl, "/tmp/bar") a.add_transform("Foo", "/tmp/bar", excl="/tmp/baz") excl = a.get("/augeas/load/Foo/excl") self.assertEqual(excl, "/tmp/baz") def test14aLabelOk(self): """test aug_label with valid input""" a = augeas.Augeas(root=MYROOT) lbl = a.label("/augeas/version") self.assertEqual(lbl, "version") def test14bLabelException(self): """test aug_label with invalid input""" a = augeas.Augeas(root=MYROOT) self.assertRaises(ValueError, a.label, "/augeas/version/[1]/") def test15Copy(self): a = augeas.Augeas(root=MYROOT) orig_path = '/tmp/src/copy_test/a' copy_path = '/tmp/dst/copy_test/a' orig_value = 'test value' a.set(orig_path, orig_value) matches = a.match(orig_path) self.assertTrue(matches) a.copy(orig_path, copy_path) matches = a.match(copy_path) self.assertTrue(matches) self.assertEqual(a.get(copy_path), a.get(orig_path)) def test16LoadFile(self): a = augeas.Augeas(root=MYROOT, flags=augeas.Augeas.NO_LOAD) a.load_file('/etc/hosts') canonical = a.get('/files/etc/hosts/*[ipaddr = \'::1\']/canonical') self.assertEqual(canonical,'localhost.localdomain') def test17Source(self): a = augeas.Augeas(root=MYROOT) source_file = a.source('/files/etc/hosts/1/ipaddr') self.assertEqual(source_file,'/files/etc/hosts') def test18Srun(self): a = augeas.Augeas(root=MYROOT) output_srun = open('test18Srun.out', 'w') a.srun(output_srun,'count /files/etc/hosts//ipaddr') output_srun.close() output_srun = open('test18Srun.out', 'r') srun_text = output_srun.read() output_srun.close() self.assertEqual(srun_text.strip(),'2 matches') def test20Preview(self): "test preview" a = augeas.Augeas(root=MYROOT) preview = a.preview("/files/etc/hosts/1/ipaddr") etc_hosts = open(MYROOT+'/etc/hosts', 'r') etc_hosts_text = etc_hosts.read() etc_hosts.close() self.assertEqual(preview, etc_hosts_text) del a def test21Ns_attr(self): "test ns_attr, ns_label, ns_value, ns_count, ns_path" a = augeas.Augeas(root=MYROOT) a.defvar("hosts", "/files/etc/hosts/*") a.defvar("hosts_1", "/files/etc/hosts/1/*") (value, label, file_path ) = a.ns_attr("hosts_1",2) self.assertEqual(label, "alias") self.assertEqual(value, "localhost") self.assertEqual(file_path, "/files/etc/hosts") value = a.ns_value("hosts_1",1) self.assertEqual(value, "localhost.localdomain") ( label, index) = a.ns_label("hosts_1",1) self.assertEqual(label, "canonical") self.assertEqual(index, 0) count = a.ns_count("hosts") self.assertEqual(count, 4) path = a.ns_path("hosts",2) self.assertEqual(path, "/files/etc/hosts/1") def testClose(self): a = augeas.Augeas(root=MYROOT) a.close() def getsuite(): suite = unittest.TestSuite() suite = unittest.makeSuite(TestAugeas, 'test') return suite if __name__ == "__main__": __testRunner = unittest.TextTestRunner(verbosity=2) __result = __testRunner.run(getsuite()) sys.exit(not __result.wasSuccessful()) __author__ = "Harald Hoyer " python-augeas-1.2.0/test/testroot/000077500000000000000000000000001451643112200171375ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/000077500000000000000000000000001451643112200177125ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/aliases000066400000000000000000000027521451643112200212640ustar00rootroot00000000000000# # Aliases in this file will NOT be expanded in the header from # Mail, but WILL be visible over networks or from /bin/mail. # # >>>>>>>>>> The program "newaliases" must be run after # >> NOTE >> this file is updated for any changes to # >>>>>>>>>> show through to sendmail. # # Basic system aliases -- these MUST be present. mailer-daemon: postmaster postmaster: root # General redirections for pseudo accounts. bin: root daemon: root adm: root lp: root sync: root shutdown: root halt: root mail: root news: root uucp: root operator: root games: root gopher: root ftp: root nobody: root radiusd: root nut: root dbus: root vcsa: root canna: root wnn: root rpm: root nscd: root pcap: root apache: root webalizer: root dovecot: root fax: root quagga: root radvd: root pvm: root amanda: root privoxy: root ident: root named: root xfs: root gdm: root mailnull: root postgres: root sshd: root smmsp: root postfix: root netdump: root ldap: root squid: root ntp: root mysql: root desktop: root rpcuser: root rpc: root nfsnobody: root ingres: root system: root toor: root manager: root dumper: root abuse: root newsadm: news newsadmin: news usenet: news ftpadm: ftp ftpadmin: ftp ftp-adm: ftp ftp-admin: ftp www: webmaster webmaster: root noc: root security: root hostmaster: root info: postmaster marketing: postmaster sales: postmaster support: postmaster # trap decode to catch security attacks decode: root # Person who should get root's mail oot: testuser python-augeas-1.2.0/test/testroot/etc/auto.master000066400000000000000000000012221451643112200220740ustar00rootroot00000000000000# # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). # /misc /etc/auto.misc # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # /net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master python-augeas-1.2.0/test/testroot/etc/crontab000066400000000000000000000003771451643112200212740ustar00rootroot00000000000000SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly python-augeas-1.2.0/test/testroot/etc/crypttab000066400000000000000000000001611451643112200214630ustar00rootroot00000000000000swap /dev/mapper/VolGroup00-luks--swap /dev/urandom swap,cipher=aes-cbc-essiv:sha256 data /dev/mapper/DATA-lvol0 python-augeas-1.2.0/test/testroot/etc/dnsmasq.conf000066400000000000000000000425321451643112200222350ustar00rootroot00000000000000# Configuration file for dnsmasq. # # Format is one option per line, legal options are the same # as the long options legal on the command line. See # "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details. # The following two options make you a better netizen, since they # tell dnsmasq to filter out queries which the public DNS cannot # answer, and which load the servers (especially the root servers) # uneccessarily. If you have a dial-on-demand link they also stop # these requests from bringing up the link uneccessarily. # Never forward plain names (without a dot or domain part) #domain-needed # Never forward addresses in the non-routed address spaces. #bogus-priv # Uncomment this to filter useless windows-originated DNS requests # which can trigger dial-on-demand links needlessly. # Note that (amongst other things) this blocks all SRV requests, # so don't use it if you use eg Kerberos. # This option only affects forwarding, SRV records originating for # dnsmasq (via srv-host= lines) are not suppressed by it. #filterwin2k # Change this line if you want dns to get its upstream servers from # somewhere other that /etc/resolv.conf #resolv-file= # By default, dnsmasq will send queries to any of the upstream # servers it knows about and tries to favour servers to are known # to be up. Uncommenting this forces dnsmasq to try each query # with each server strictly in the order they appear in # /etc/resolv.conf #strict-order # If you don't want dnsmasq to read /etc/resolv.conf or any other # file, getting its servers from this file instead (see below), then # uncomment this. no-resolv # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv # files for changes and re-read them then uncomment this. no-poll # Add other name servers here, with domain specs if they are for # non-public domains. #server=192.168.10.253 #server=/redhat.com/10.32.63.5 #server=/10.in-addr.arpa/10.32.63.5 # Example of routing PTR queries to nameservers: this will send all # address->name queries for 192.168.3/24 to nameserver 10.1.2.3 #server=/3.168.192.in-addr.arpa/10.1.2.3 # Add local-only domains here, queries in these domains are answered # from /etc/hosts or DHCP only. #local=/localnet/ # Add domains which you want to force to an IP address here. # The example below send any host in doubleclick.net to a local # webserver. #address=/doubleclick.net/127.0.0.1 # If you want dnsmasq to change uid and gid to something other # than the default, edit the following lines. #user= #group= # If you want dnsmasq to listen for DHCP and DNS requests only on # specified interfaces (and the loopback) give the name of the # interface (eg eth0) here. # Repeat the line for more than one interface. #interface= # Or you can specify which interface _not_ to listen on #except-interface= # Or which to listen on by address (remember to include 127.0.0.1 if # you use this.) #listen-address= # If you want dnsmasq to provide only DNS service on an interface, # configure it as shown above, and then use the following line to # disable DHCP on it. #no-dhcp-interface= # On systems which support it, dnsmasq binds the wildcard address, # even when it is listening on only some interfaces. It then discards # requests that it shouldn't reply to. This has the advantage of # working even when interfaces come and go and change address. If you # want dnsmasq to really bind only the interfaces it is listening on, # uncomment this option. About the only time you may need this is when # running another nameserver on the same machine. #bind-interfaces # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. #no-hosts # or if you want it to read another file, as well as /etc/hosts, use # this. #addn-hosts=/etc/banner_add_hosts # Set this (and domain: see below) if you want to have a domain # automatically added to simple names in a hosts-file. #expand-hosts # Set the domain for dnsmasq. this is optional, but if it is set, it # does the following things. # 1) Allows DHCP hosts to have fully qualified domain names, as long # as the domain part matches this setting. # 2) Sets the "domain" DHCP option thereby potentially setting the # domain of all systems configured by DHCP # 3) Provides the domain part for "expand-hosts" domain=home # Uncomment this to enable the integrated DHCP server, you need # to supply the range of addresses available for lease and optionally # a lease time. If you have more than one network, you will need to # repeat this for each network on which you want to supply DHCP # service. #dhcp-range=192.168.0.50,192.168.0.150,12h # This is an example of a DHCP range where the netmask is given. This # is needed for networks we reach the dnsmasq DHCP server via a relay # agent. If you don't know what a DHCP relay agent is, you probably # don't need to worry about this. #dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h # This is an example of a DHCP range with a network-id, so that # some DHCP options may be set only for this network. #dhcp-range=red,192.168.0.50,192.168.0.150 # Supply parameters for specified hosts using DHCP. There are lots # of valid alternatives, so we will give examples of each. Note that # IP addresses DO NOT have to be in the range given above, they just # need to be on the same network. The order of the parameters in these # do not matter, it's permissble to give name,adddress and MAC in any order # Always allocate the host with ethernet address 11:22:33:44:55:66 # The IP address 192.168.0.60 #dhcp-host=11:22:33:44:55:66,192.168.0.60 # Always set the name of the host with hardware address # 11:22:33:44:55:66 to be "fred" #dhcp-host=11:22:33:44:55:66,fred # Always give the host with ethernet address 11:22:33:44:55:66 # the name fred and IP address 192.168.0.60 and lease time 45 minutes #dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m # Give the machine which says it's name is "bert" IP address # 192.168.0.70 and an infinite lease #dhcp-host=bert,192.168.0.70,infinite # Always give the host with client identifier 01:02:02:04 # the IP address 192.168.0.60 #dhcp-host=id:01:02:02:04,192.168.0.60 # Always give the host with client identifier "marjorie" # the IP address 192.168.0.60 #dhcp-host=id:marjorie,192.168.0.60 # Enable the address given for "judge" in /etc/hosts # to be given to a machine presenting the name "judge" when # it asks for a DHCP lease. #dhcp-host=judge # Never offer DHCP service to a machine whose ethernet # address is 11:22:33:44:55:66 #dhcp-host=11:22:33:44:55:66,ignore # Ignore any client-id presented by the machine with ethernet # address 11:22:33:44:55:66. This is useful to prevent a machine # being treated differently when running under different OS's or # between PXE boot and OS boot. #dhcp-host=11:22:33:44:55:66,id:* # Send extra options which are tagged as "red" to # the machine with ethernet address 11:22:33:44:55:66 #dhcp-host=11:22:33:44:55:66,net:red # Send extra options which are tagged as "red" to # any machine with ethernet address starting 11:22:33: #dhcp-host=11:22:33:*:*:*,net:red # Ignore any clients which are specified in dhcp-host lines # or /etc/ethers. Equivalent to ISC "deny unkown-clients". # This relies on the special "known" tag which is set when # a host is matched. #dhcp-ignore=#known # Send extra options which are tagged as "red" to any machine whose # DHCP vendorclass string includes the substring "Linux" #dhcp-vendorclass=red,Linux # Send extra options which are tagged as "red" to any machine one # of whose DHCP userclass strings includes the substring "accounts" #dhcp-userclass=red,accounts # Send extra options which are tagged as "red" to any machine whose # MAC address matches the pattern. #dhcp-mac=red,00:60:8C:*:*:* # If this line is uncommented, dnsmasq will read /etc/ethers and act # on the ethernet-address/IP pairs found there just as if they had # been given as --dhcp-host options. Useful if you keep # MAC-address/host mappings there for other purposes. #read-ethers # Send options to hosts which ask for a DHCP lease. # See RFC 2132 for details of available options. # Common options can be given to dnsmasq by name: # run "dnsmasq --help dhcp" to get a list. # Note that all the common settings, such as netmask and # broadcast address, DNS server and default route, are given # sane defaults by dnsmasq. You very likely will not need # any dhcp-options. If you use Windows clients and Samba, there # are some options which are recommended, they are detailed at the # end of this section. # Override the default route supplied by dnsmasq, which assumes the # router is the same machine as the one running dnsmasq. #dhcp-option=3,1.2.3.4 # Do the same thing, but using the option name #dhcp-option=option:router,1.2.3.4 # Override the default route supplied by dnsmasq and send no default # route at all. Note that this only works for the options sent by # default (1, 3, 6, 12, 28) the same line will send a zero-length option # for all other option numbers. #dhcp-option=3 # Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5 #dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5 # Set the NTP time server address to be the same machine as # is running dnsmasq #dhcp-option=42,0.0.0.0 # Set the NIS domain name to "welly" #dhcp-option=40,welly # Set the default time-to-live to 50 #dhcp-option=23,50 # Set the "all subnets are local" flag #dhcp-option=27,1 # Send the etherboot magic flag and then etherboot options (a string). #dhcp-option=128,e4:45:74:68:00:00 #dhcp-option=129,NIC=eepro100 # Specify an option which will only be sent to the "red" network # (see dhcp-range for the declaration of the "red" network) # Note that the net: part must precede the option: part. #dhcp-option = net:red, option:ntp-server, 192.168.1.1 # The following DHCP options set up dnsmasq in the same way as is specified # for the ISC dhcpcd in # http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt # adapted for a typical dnsmasq installation where the host running # dnsmasq is also the host running samba. # you may want to uncomment them if you use Windows clients and Samba. #dhcp-option=19,0 # option ip-forwarding off #dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s) #dhcp-option=45,0.0.0.0 # netbios datagram distribution server #dhcp-option=46,8 # netbios node type #dhcp-option=47 # empty netbios scope. # Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client # probably doesn't support this...... #dhcp-option=option:domain-search,eng.apple.com,marketing.apple.com # Send RFC-3442 classless static routes (note the netmask encoding) #dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8 # Send vendor-class specific options encapsulated in DHCP option 43. # The meaning of the options is defined by the vendor-class so # options are sent only when the client supplied vendor class # matches the class given here. (A substring match is OK, so "MSFT" # matches "MSFT" and "MSFT 5.0"). This example sets the # mtftp address to 0.0.0.0 for PXEClients. #dhcp-option=vendor:PXEClient,1,0.0.0.0 # Send microsoft-specific option to tell windows to release the DHCP lease # when it shuts down. Note the "i" flag, to tell dnsmasq to send the # value as a four-byte integer - that's what microsoft wants. See # http://technet2.microsoft.com/WindowsServer/en/library/a70f1bb7-d2d4-49f0-96d6-4b7414ecfaae1033.mspx?mfr=true #dhcp-option=vendor:MSFT,2,1i # Send the Encapsulated-vendor-class ID needed by some configurations of # Etherboot to allow is to recognise the DHCP server. #dhcp-option=vendor:Etherboot,60,"Etherboot" # Send options to PXELinux. Note that we need to send the options even # though they don't appear in the parameter request list, so we need # to use dhcp-option-force here. # See http://syslinux.zytor.com/pxe.php#special for details. # Magic number - needed before anything else is recognised #dhcp-option-force=208,f1:00:74:7e # Configuration file name #dhcp-option-force=209,configs/common # Path prefix #dhcp-option-force=210,/tftpboot/pxelinux/files/ # Reboot time. (Note 'i' to send 32-bit value) #dhcp-option-force=211,30i # Set the boot filename for BOOTP. You will only need # this is you want to boot machines over the network and you will need # a TFTP server; either dnsmasq's built in TFTP server or an # external one. (See below for how to enable the TFTP server.) #dhcp-boot=pxelinux.0 # Enable dnsmasq's built-in TFTP server #enable-tftp # Set the root directory for files availble via FTP. #tftp-root=/var/ftpd # Make the TFTP server more secure: with this set, only files owned by # the user dnsmasq is running as will be send over the net. #tftp-secure # Set the boot file name only when the "red" tag is set. #dhcp-boot=net:red,pxelinux.red-net # An example of dhcp-boot with an external server: the name and IP # address of the server are given after the filename. #dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3 # Set the limit on DHCP leases, the default is 150 #dhcp-lease-max=150 # The DHCP server needs somewhere on disk to keep its lease database. # This defaults to a sane location, but if you want to change it, use # the line below. #dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases # Set the DHCP server to authoritative mode. In this mode it will barge in # and take over the lease for any client which broadcasts on the network, # whether it has a record of the lease or not. This avoids long timeouts # when a machine wakes up on a new network. DO NOT enable this if there's # the slighest chance that you might end up accidentally configuring a DHCP # server for your campus/company accidentally. The ISC server uses # the same option, and this URL provides more information: # http://www.isc.org/index.pl?/sw/dhcp/authoritative.php #dhcp-authoritative # Run an executable when a DHCP lease is created or destroyed. # The arguments sent to the script are "add" or "del", # then the MAC address, the IP address and finally the hostname # if there is one. #dhcp-script=/bin/echo # Set the cachesize here. #cache-size=150 # If you want to disable negative caching, uncomment this. #no-negcache # Normally responses which come form /etc/hosts and the DHCP lease # file have Time-To-Live set as zero, which conventionally means # do not cache further. If you are happy to trade lower load on the # server for potentially stale date, you can set a time-to-live (in # seconds) here. #local-ttl= # If you want dnsmasq to detect attempts by Verisign to send queries # to unregistered .com and .net hosts to its sitefinder service and # have dnsmasq instead return the correct NXDOMAIN response, uncomment # this line. You can add similar lines to do the same for other # registries which have implemented wildcard A records. #bogus-nxdomain=64.94.110.11 # If you want to fix up DNS results from upstream servers, use the # alias option. This only works for IPv4. # This alias makes a result of 1.2.3.4 appear as 5.6.7.8 #alias=1.2.3.4,5.6.7.8 # and this maps 1.2.3.x to 5.6.7.x #alias=1.2.3.0,5.6.7.0,255.255.255.0 # Change these lines if you want dnsmasq to serve MX records. # Return an MX record named "maildomain.com" with target # servermachine.com and preference 50 #mx-host=maildomain.com,servermachine.com,50 # Set the default target for MX records created using the localmx option. #mx-target=servermachine.com # Return an MX record pointing to the mx-target for all local # machines. #localmx # Return an MX record pointing to itself for all local machines. #selfmx # Change the following lines if you want dnsmasq to serve SRV # records. These are useful if you want to serve ldap requests for # Active Directory and other windows-originated DNS requests. # See RFC 2782. # You may add multiple srv-host lines. # The fields are ,,,, # If the domain part if missing from the name (so that is just has the # service and protocol sections) then the domain given by the domain= # config option is used. (Note that expand-hosts does not need to be # set for this to work.) # A SRV record sending LDAP for the example.com domain to # ldapserver.example.com port 289 #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389 # A SRV record sending LDAP for the example.com domain to # ldapserver.example.com port 289 (using domain=) #domain=example.com #srv-host=_ldap._tcp,ldapserver.example.com,389 # Two SRV records for LDAP, each with different priorities #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1 #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2 # A SRV record indicating that there is no LDAP server for the domain # example.com #srv-host=_ldap._tcp.example.com # The following line shows how to make dnsmasq serve an arbitrary PTR # record. This is useful for DNS-SD. (Note that the # domain-name expansion done for SRV records _does_not # occur for PTR records.) #ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services" # Change the following lines to enable dnsmasq to serve TXT records. # These are used for things like SPF and zeroconf. (Note that the # domain-name expansion done for SRV records _does_not # occur for TXT records.) #Example SPF. #txt-record=example.com,"v=spf1 a -all" #Example zeroconf #txt-record=_http._tcp.example.com,name=value,paper=A4 # For debugging purposes, log each DNS query as it passes through # dnsmasq. #log-queries # Log lots of extra information about DHCP transactions. #log-dhcp # Include a another lot of configuration options. #conf-file=/etc/dnsmasq.more.conf conf-dir=/etc/dnsmasq.d python-augeas-1.2.0/test/testroot/etc/ethers000066400000000000000000000000341451643112200211240ustar00rootroot00000000000000# see man ethers for syntax python-augeas-1.2.0/test/testroot/etc/exports000066400000000000000000000001521451643112200213370ustar00rootroot00000000000000/home/pub 192.168.10.1(rw) 192.168.10.*(ro) 192.168.10.12(rw,root_squash) 192.168.10.10(rw,root_squash) python-augeas-1.2.0/test/testroot/etc/filesystems000066400000000000000000000000731451643112200222040ustar00rootroot00000000000000ext3 ext2 nodev proc nodev devpts iso9660 vfat hfs hfsplus python-augeas-1.2.0/test/testroot/etc/fstab000066400000000000000000000011771451643112200207420ustar00rootroot00000000000000/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 #tmpfs /tmp tmpfs defaults 0 0 /dev/mapper/swap none swap defaults 0 0 /dev/mapper/data /pub ext3 defaults 0 0 /dev/VolGroup00/LogVol01 /home ext3 defaults 1 2 python-augeas-1.2.0/test/testroot/etc/group000066400000000000000000000016701451643112200207750ustar00rootroot00000000000000root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon sys:x:3:root,bin,adm adm:x:4:root,adm,daemon tty:x:5: disk:x:6:root lp:x:7:daemon,lp mem:x:8: kmem:x:9: wheel:x:10:root mail:x:12:mail news:x:13:news uucp:x:14:uucp man:x:15: games:x:20: gopher:x:30: dip:x:40: ftp:x:50: lock:x:54: nobody:x:99: users:x:100: utmp:x:22: utempter:x:35: nscd:x:28: floppy:x:19: vcsa:x:69: tcpdump:x:72: slocate:x:21: ccache:x:499: gnokii:x:498: rpm:x:37: hsqldb:x:96: ntp:x:38: dbus:x:81: pulse:x:497: pulse-rt:x:496: pulse-access:x:495: avahi:x:494: apache:x:48: wbpriv:x:88: mailnull:x:47: smmsp:x:51: sshd:x:74: rpcuser:x:29: nfsnobody:x:4294967294: torrent:x:493: polkituser:x:87: fuse:x:492:harald haldaemon:x:68: gdm:x:42: testuser:x:500: jackuser:x:491: mock:x:490: penvpn:x:489: smolt:x:488: tomcat:x:91: jetty:x:487: screen:x:84: rpc:x:32: stapdev:x:486: stapusr:x:485: akmodsd:x:484: backuppc:x:483:apache akmods:x:482: bacula:x:481: dovecot:x:97: python-augeas-1.2.0/test/testroot/etc/grub.conf000066400000000000000000000014311451643112200215170ustar00rootroot00000000000000# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz title Fedora (2.6.25-1.fc9.x86_64) root (hd0,0) kernel /vmlinuz-2.6.25-1.fc9.x86_64 ro root=/dev/VolGroup00/LogVol00 quiet initrd /initrd-2.6.25-1.fc9.x86_64.img title Fedora (2.6.25-0.218.rc8.git7.fc9.x86_64) root (hd0,0) kernel /vmlinuz-2.6.25-0.218.rc8.git7.fc9.x86_64 ro root=/dev/VolGroup00/LogVol00 quiet initrd /initrd-2.6.25-0.218.rc8.git7.fc9.x86_64.img python-augeas-1.2.0/test/testroot/etc/host.conf000066400000000000000000000000211451643112200215270ustar00rootroot00000000000000order hosts,bind python-augeas-1.2.0/test/testroot/etc/hosts000066400000000000000000000003121451643112200207710ustar00rootroot00000000000000# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost testhost ::1 localhost.localdomain localhost6 localhost python-augeas-1.2.0/test/testroot/etc/hosts.allow000066400000000000000000000005621451643112200221150ustar00rootroot00000000000000# # hosts.allow This file contains access rules which are used to # allow or deny connections to network services that # either use the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # python-augeas-1.2.0/test/testroot/etc/hosts.deny000066400000000000000000000012051451643112200217310ustar00rootroot00000000000000# # hosts.deny This file contains access rules which are used to # deny connections to network services that either use # the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # The rules in this file can also be set up in # /etc/hosts.allow with a 'deny' option instead. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # # # The portmap line is redundant, but it is left to remind you that # the new secure portmap uses hosts.deny and hosts.allow. In particular # you should know that NFS uses portmap! # python-augeas-1.2.0/test/testroot/etc/inittab000066400000000000000000000015251451643112200212720ustar00rootroot00000000000000# inittab is only used by upstart for the default runlevel. # # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # System initialization is started by /etc/event.d/rcS # # Individual runlevels are started by /etc/event.d/rc[0-6] # # Ctrl-Alt-Delete is handled by /etc/event.d/control-alt-delete # # Terminal gettys (tty[1-6]) are handled by /etc/event.d/tty[1-6] and # /etc/event.d/serial # # For information on how to write upstart event handlers, or how # upstart works, see init(8), initctl(8), and events(5). # # Default runlevel. The runlevels used are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:3:initdefault: python-augeas-1.2.0/test/testroot/etc/krb5.conf000066400000000000000000000011341451643112200214230ustar00rootroot00000000000000[logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] ticket_lifetime = 24000 default_realm = EXAMPLE.COM dns_lookup_realm = false dns_lookup_kdc = false [realms] EXAMPLE.COM = { kdc = kerberos.example.com admin_server = kerberos.example.com default_domain = example.com } [domain_realm] .example.com = EXAMPLE.COM example.com = EXAMPLE.COM #[kdc] # profile = /var/kerberos/krb5kdc/kdc.conf [pam] debug = false ticket_lifetime = 36000 renew_lifetime = 36000 forwardable = true krb4_convert = true python-augeas-1.2.0/test/testroot/etc/ldap.conf000066400000000000000000000215171451643112200215070ustar00rootroot00000000000000# @(#)$Id: ldap.conf,v 1.38 2006/05/15 08:13:31 lukeh Exp $ # # This is the configuration file for the LDAP nameservice # switch library and the LDAP PAM module. # # The man pages for this file are nss_ldap(5) and pam_ldap(5) # # PADL Software # http://www.padl.com # # Your LDAP server. Must be resolvable without using LDAP. # Multiple hosts may be specified, each separated by a # space. How long nss_ldap takes to failover depends on # whether your LDAP client library supports configurable # network or connect timeouts (see bind_timelimit). host 127.0.0.1 # The distinguished name of the search base. base dc=example,dc=com # Another way to specify your LDAP server is to provide an # uri with the server name. This allows to use # Unix Domain Sockets to connect to a local LDAP Server. #uri ldap://127.0.0.1/ #uri ldaps://127.0.0.1/ #uri ldapi://%2fvar%2frun%2fldapi_sock/ # Note: %2f encodes the '/' used as directory separator # The LDAP version to use (defaults to 3 # if supported by client library) #ldap_version 3 # The distinguished name to bind to the server with. # Optional: default is to bind anonymously. #binddn cn=proxyuser,dc=example,dc=com # The credentials to bind with. # Optional: default is no credential. #bindpw secret # The distinguished name to bind to the server with # if the effective user ID is root. Password is # stored in /etc/ldap.secret (mode 600) #rootbinddn cn=manager,dc=example,dc=com # The port. # Optional: default is 389. #port 389 # The search scope. #scope sub #scope one #scope base # Search timelimit #timelimit 30 timelimit 120 # Bind/connect timelimit #bind_timelimit 30 bind_timelimit 120 # Reconnect policy: hard (default) will retry connecting to # the software with exponential backoff, soft will fail # immediately. #bind_policy hard # Idle timelimit; client will close connections # (nss_ldap only) if the server has not been contacted # for the number of seconds specified below. #idle_timelimit 3600 idle_timelimit 3600 # Filter to AND with uid=%s #pam_filter objectclass=account # The user ID attribute (defaults to uid) #pam_login_attribute uid # Search the root DSE for the password policy (works # with Netscape Directory Server) #pam_lookup_policy yes # Check the 'host' attribute for access control # Default is no; if set to yes, and user has no # value for the host attribute, and pam_ldap is # configured for account management (authorization) # then the user will not be allowed to login. #pam_check_host_attr yes # Check the 'authorizedService' attribute for access # control # Default is no; if set to yes, and the user has no # value for the authorizedService attribute, and # pam_ldap is configured for account management # (authorization) then the user will not be allowed # to login. #pam_check_service_attr yes # Group to enforce membership of #pam_groupdn cn=PAM,ou=Groups,dc=example,dc=com # Group member attribute #pam_member_attribute uniquemember # Specify a minium or maximum UID number allowed #pam_min_uid 0 #pam_max_uid 0 # Template login attribute, default template user # (can be overriden by value of former attribute # in user's entry) #pam_login_attribute userPrincipalName #pam_template_login_attribute uid #pam_template_login nobody # HEADS UP: the pam_crypt, pam_nds_passwd, # and pam_ad_passwd options are no # longer supported. # # Do not hash the password at all; presume # the directory server will do it, if # necessary. This is the default. #pam_password clear # Hash password locally; required for University of # Michigan LDAP server, and works with Netscape # Directory Server if you're using the UNIX-Crypt # hash mechanism and not using the NT Synchronization # service. #pam_password crypt # Remove old password first, then update in # cleartext. Necessary for use with Novell # Directory Services (NDS) #pam_password clear_remove_old #pam_password nds # RACF is an alias for the above. For use with # IBM RACF #pam_password racf # Update Active Directory password, by # creating Unicode password and updating # unicodePwd attribute. #pam_password ad # Use the OpenLDAP password change # extended operation to update the password. #pam_password exop # Redirect users to a URL or somesuch on password # changes. #pam_password_prohibit_message Please visit http://internal to change your password. # RFC2307bis naming contexts # Syntax: # nss_base_XXX base?scope?filter # where scope is {base,one,sub} # and filter is a filter to be &'d with the # default filter. # You can omit the suffix eg: # nss_base_passwd ou=People, # to append the default base DN but this # may incur a small performance impact. #nss_base_passwd ou=People,dc=example,dc=com?one #nss_base_shadow ou=People,dc=example,dc=com?one #nss_base_group ou=Group,dc=example,dc=com?one #nss_base_hosts ou=Hosts,dc=example,dc=com?one #nss_base_services ou=Services,dc=example,dc=com?one #nss_base_networks ou=Networks,dc=example,dc=com?one #nss_base_protocols ou=Protocols,dc=example,dc=com?one #nss_base_rpc ou=Rpc,dc=example,dc=com?one #nss_base_ethers ou=Ethers,dc=example,dc=com?one #nss_base_netmasks ou=Networks,dc=example,dc=com?ne #nss_base_bootparams ou=Ethers,dc=example,dc=com?one #nss_base_aliases ou=Aliases,dc=example,dc=com?one #nss_base_netgroup ou=Netgroup,dc=example,dc=com?one # Just assume that there are no supplemental groups for these named users nss_initgroups_ignoreusers root,ldap,named,avahi,haldaemon,dbus,radvd,tomcat,radiusd,news,mailman,nscd,gdm,polkituser # attribute/objectclass mapping # Syntax: #nss_map_attribute rfc2307attribute mapped_attribute #nss_map_objectclass rfc2307objectclass mapped_objectclass # configure --enable-nds is no longer supported. # NDS mappings #nss_map_attribute uniqueMember member # Services for UNIX 3.5 mappings #nss_map_objectclass posixAccount User #nss_map_objectclass shadowAccount User #nss_map_attribute uid msSFU30Name #nss_map_attribute uniqueMember msSFU30PosixMember #nss_map_attribute userPassword msSFU30Password #nss_map_attribute homeDirectory msSFU30HomeDirectory #nss_map_attribute homeDirectory msSFUHomeDirectory #nss_map_objectclass posixGroup Group #pam_login_attribute msSFU30Name #pam_filter objectclass=User #pam_password ad # configure --enable-mssfu-schema is no longer supported. # Services for UNIX 2.0 mappings #nss_map_objectclass posixAccount User #nss_map_objectclass shadowAccount user #nss_map_attribute uid msSFUName #nss_map_attribute uniqueMember posixMember #nss_map_attribute userPassword msSFUPassword #nss_map_attribute homeDirectory msSFUHomeDirectory #nss_map_attribute shadowLastChange pwdLastSet #nss_map_objectclass posixGroup Group #nss_map_attribute cn msSFUName #pam_login_attribute msSFUName #pam_filter objectclass=User #pam_password ad # RFC 2307 (AD) mappings #nss_map_objectclass posixAccount user #nss_map_objectclass shadowAccount user #nss_map_attribute uid sAMAccountName #nss_map_attribute homeDirectory unixHomeDirectory #nss_map_attribute shadowLastChange pwdLastSet #nss_map_objectclass posixGroup group #nss_map_attribute uniqueMember member #pam_login_attribute sAMAccountName #pam_filter objectclass=User #pam_password ad # configure --enable-authpassword is no longer supported # AuthPassword mappings #nss_map_attribute userPassword authPassword # AIX SecureWay mappings #nss_map_objectclass posixAccount aixAccount #nss_base_passwd ou=aixaccount,?one #nss_map_attribute uid userName #nss_map_attribute gidNumber gid #nss_map_attribute uidNumber uid #nss_map_attribute userPassword passwordChar #nss_map_objectclass posixGroup aixAccessGroup #nss_base_group ou=aixgroup,?one #nss_map_attribute cn groupName #nss_map_attribute uniqueMember member #pam_login_attribute userName #pam_filter objectclass=aixAccount #pam_password clear # Netscape SDK LDAPS #ssl on # Netscape SDK SSL options #sslpath /etc/ssl/certs # OpenLDAP SSL mechanism # start_tls mechanism uses the normal LDAP port, LDAPS typically 636 #ssl start_tls #ssl on # OpenLDAP SSL options # Require and verify server certificate (yes/no) # Default is to use libldap's default behavior, which can be configured in # /etc/openldap/ldap.conf using the TLS_REQCERT setting. The default for # OpenLDAP 2.0 and earlier is "no", for 2.1 and later is "yes". #tls_checkpeer yes # CA certificates for server certificate verification # At least one of these are required if tls_checkpeer is "yes" #tls_cacertfile /etc/ssl/ca.cert #tls_cacertdir /etc/ssl/certs # Seed the PRNG if /dev/urandom is not provided #tls_randfile /var/run/egd-pool # SSL cipher suite # See man ciphers for syntax #tls_ciphers TLSv1 # Client certificate and key # Use these, if your server requires client authentication. #tls_cert #tls_key # Disable SASL security layers. This is needed for AD. #sasl_secprops maxssf=0 # Override the default Kerberos ticket cache location. #krb5_ccname FILE:/etc/.ldapcache # SASL mechanism for PAM authentication - use is experimental # at present and does not support password policy control #pam_sasl_mech DIGEST-MD5 python-augeas-1.2.0/test/testroot/etc/libuser.conf000066400000000000000000000043621451643112200222330ustar00rootroot00000000000000# See libuser.conf(5) for more information. # Do not modify the default module list if you care about unattended calls # to programs (i.e., scripts) working! [import] # Data from these files is used when libuser.conf does not define a value. # The mapping is documented in the man page. login_defs = /etc/login.defs default_useradd = /etc/default/useradd [defaults] # The default (/usr/lib*/libuser) is usually correct # moduledir = /your/custom/directory # The following variables are usually imported: # skeleton = /etc/skel # mailspooldir = /var/mail crypt_style = md5 modules = files shadow create_modules = files shadow # modules = files shadow ldap # create_modules = ldap [userdefaults] LU_USERNAME = %n # LU_UIDNUMBER = 500 LU_GIDNUMBER = %u # LU_USERPASSWORD = !! # LU_GECOS = %n # LU_HOMEDIRECTORY = /home/%n # LU_LOGINSHELL = /bin/bash # LU_SHADOWNAME = %n # LU_SHADOWPASSWORD = !! # LU_SHADOWLASTCHANGE = %d # LU_SHADOWMIN = 0 # LU_SHADOWMAX = 99999 # LU_SHADOWWARNING = 7 # LU_SHADOWINACTIVE = -1 # LU_SHADOWEXPIRE = -1 # LU_SHADOWFLAG = -1 [groupdefaults] LU_GROUPNAME = %n # LU_GIDNUMBER = 500 # LU_GROUPPASSWORD = !! # LU_MEMBERUID = # LU_ADMINISTRATORUID = [files] # This is useful for the case where some master files are used to # populate a different NSS mechanism which this workstation uses. # directory = /etc [shadow] # This is useful for the case where some master files are used to # populate a different NSS mechanism which this workstation uses. # directory = /etc [ldap] # Setting these is always necessary. # server = ldap # basedn = dc=example,dc=com # Setting these is rarely necessary, since it's usually correct. # userBranch = ou=People # groupBranch = ou=Group # Set only if your administrative user uses simple bind operations to # connect to the server. # binddn = cn=Manager,dc=example,dc=com # Set this only if the default user (as determined by SASL) is incorrect # for SASL bind operations. Usually, it's correct, so you'll rarely need # to set these. # user = Manager # authuser = Manager [sasl] # Set these only if your sasldb is only used by a particular application, and # in a particular domain. The default (all applications, all domains) is # probably correct for most installations. # appname = imap # domain = EXAMPLE.COM python-augeas-1.2.0/test/testroot/etc/logrotate.conf000066400000000000000000000012121451643112200225550ustar00rootroot00000000000000# see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # use date as a suffix of the rotated file dateext # uncomment this if you want your log files compressed #compress # RPM packages drop log rotation information into this directory include /etc/logrotate.d # no packages own wtmp and btmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } /var/log/btmp { missingok monthly create 0600 root utmp rotate 1 } # system-specific logs may be also be configured here. python-augeas-1.2.0/test/testroot/etc/mail.rc000066400000000000000000000001601451643112200211570ustar00rootroot00000000000000set ask askcc append dot save crt ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via python-augeas-1.2.0/test/testroot/etc/mail/000077500000000000000000000000001451643112200206345ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/mail/access000066400000000000000000000007251451643112200220240ustar00rootroot00000000000000# Check the /usr/share/doc/sendmail/README.cf file for a description # of the format of this file. (search for access_db in that file) # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc # package. # # If you want to use AuthInfo with "M:PLAIN LOGIN", make sure to have the # cyrus-sasl-plain package installed. # # By default we allow relaying from localhost... Connect:localhost.localdomain RELAY Connect:localhost RELAY Connect:127.0.0.1 RELAY python-augeas-1.2.0/test/testroot/etc/mail/domaintable000066400000000000000000000003511451643112200230350ustar00rootroot00000000000000# The "domain table" can be used to provide domain name mapping. # Use of this should really be limited to your own domains. # It may be useful if you change names (e.g., your company # changes names from oldname.com to newname.com) python-augeas-1.2.0/test/testroot/etc/mail/local-host-names000066400000000000000000000001001451643112200237140ustar00rootroot00000000000000# local-host-names - include all aliases for your machine here. python-augeas-1.2.0/test/testroot/etc/mail/mailertable000066400000000000000000000017451451643112200230470ustar00rootroot00000000000000# The "mailer table" can be used to override routing for particular domains # (which are not in class {w}, i.e. local host names). # # hash /etc/mail/mailertable # # Keys in this database are fully qualified domain names or partial domains # preceded by a dot -- for example, "vangogh.CS.Berkeley.EDU" or # ".CS.Berkeley.EDU". As a special case of the latter, "." matches any domain # not covered by other keys. Values must be of the form: # # mailer:domain # # where "mailer" is the internal mailer name, and "domain" is where to send # the message. These maps are not reflected into the message header. As a # special case, the forms: # # local:user # # will forward to the indicated user using the local mailer, # # local: # # will forward to the original user in the e-mail address using the local # mailer, and # # error:code message # error:D.S.N:code message # # will give an error message with the indicated SMTP reply code and message, # where D.S.N is an RFC 1893 compliant error code. python-augeas-1.2.0/test/testroot/etc/mail/sendmail.mc000066400000000000000000000160451451643112200227570ustar00rootroot00000000000000divert(-1)dnl dnl # dnl # This is the sendmail macro config file for m4. If you make changes to dnl # /etc/mail/sendmail.mc, you will need to regenerate the dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is dnl # installed and then performing a dnl # dnl # make -C /etc/mail dnl # include(`/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(`setup for linux')dnl OSTYPE(`linux')dnl dnl # dnl # Do not advertize sendmail version. dnl # dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl dnl # dnl # default logging level is 9, you might want to set it higher to dnl # debug the configuration dnl # dnl define(`confLOG_LEVEL', `9')dnl dnl # dnl # Uncomment and edit the following line if your outgoing mail needs to dnl # be sent out through an external mail server: dnl # dnl define(`SMART_HOST', `smtp.your.provider')dnl dnl # define(`confDEF_USER_ID', ``8:12'')dnl dnl define(`confAUTO_REBUILD')dnl define(`confTO_CONNECT', `1m')dnl define(`confTRY_NULL_MX_LIST', `True')dnl define(`confDONT_PROBE_INTERFACES', `True')dnl define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl define(`ALIAS_FILE', `/etc/aliases')dnl define(`STATUS_FILE', `/var/log/mail/statistics')dnl define(`UUCP_MAILER_MAX', `2000000')dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl define(`confAUTH_OPTIONS', `A')dnl dnl # dnl # The following allows relaying if the user authenticates, and disallows dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links dnl # dnl define(`confAUTH_OPTIONS', `A p')dnl dnl # dnl # PLAIN is the preferred plaintext authentication method and used by dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do dnl # use LOGIN. Other mechanisms should be used if the connection is not dnl # guaranteed secure. dnl # Please remember that saslauthd needs to be running for AUTH. dnl # dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl dnl # dnl # Rudimentary information on creating certificates for sendmail TLS: dnl # cd /etc/pki/tls/certs; make sendmail.pem dnl # Complete usage: dnl # make -C /etc/pki/tls/certs usage dnl # dnl define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl dnl define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl dnl define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl dnl define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl dnl # dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's dnl # slapd, which requires the file to be readble by group ldap dnl # dnl define(`confDONT_BLAME_SENDMAIL', `groupreadablekeyfile')dnl dnl # dnl define(`confTO_QUEUEWARN', `4h')dnl dnl define(`confTO_QUEUERETURN', `5d')dnl dnl define(`confQUEUE_LA', `12')dnl dnl define(`confREFUSE_LA', `18')dnl define(`confTO_IDENT', `0')dnl dnl FEATURE(delay_checks)dnl FEATURE(`no_default_msa', `dnl')dnl FEATURE(`smrsh', `/usr/sbin/smrsh')dnl FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl dnl # dnl # The following limits the number of processes sendmail can fork to accept dnl # incoming messages or process its message queues to 20.) sendmail refuses dnl # to accept connections once it has reached its quota of child processes. dnl # dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl dnl # dnl # Limits the number of new connections per second. This caps the overhead dnl # incurred due to forking new sendmail processes. May be useful against dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address dnl # limit would be useful but is not available as an option at this writing.) dnl # dnl define(`confCONNECTION_RATE_THROTTLE', `3')dnl dnl # dnl # The -t option will retry delivery if e.g. the user runs over his quota. dnl # FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl FEATURE(`access_db', `hash -T -o /etc/mail/access.db')dnl FEATURE(`blacklist_recipients')dnl EXPOSED_USER(`root')dnl dnl # dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment dnl # the following 2 definitions and activate below in the MAILER section the dnl # cyrusv2 mailer. dnl # dnl define(`confLOCAL_MAILER', `cyrusv2')dnl dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl dnl # dnl # The following causes sendmail to only listen on the IPv4 loopback address dnl # 127.0.0.1 and not on any other network devices. Remove the loopback dnl # address restriction to accept email from the internet or intranet. dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl dnl # dnl # The following causes sendmail to additionally listen to port 587 for dnl # mail from MUAs that authenticate. Roaming users who can't reach their dnl # preferred sendmail daemon due to port 25 being blocked or redirected find dnl # this useful. dnl # dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl dnl # dnl # The following causes sendmail to additionally listen to port 465, but dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1. dnl # dnl # For this to work your OpenSSL certificates must be configured. dnl # dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl dnl # dnl # The following causes sendmail to additionally listen on the IPv6 loopback dnl # device. Remove the loopback address restriction listen to the network. dnl # dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl dnl # dnl # enable both ipv6 and ipv4 in sendmail: dnl # dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6') dnl # dnl # We strongly recommend not accepting unresolvable domains if you want to dnl # protect yourself from spam. However, the laptop and users on computers dnl # that do not have 24x7 DNS do need this. dnl # FEATURE(`accept_unresolvable_domains')dnl dnl # dnl FEATURE(`relay_based_on_MX')dnl dnl # dnl # Also accept email sent to "localhost.localdomain" as local email. dnl # LOCAL_DOMAIN(`localhost.localdomain')dnl dnl # dnl # The following example makes mail from this host and any additional dnl # specified domains appear to be sent from mydomain.com dnl # dnl MASQUERADE_AS(`mydomain.com')dnl dnl # dnl # masquerade not just the headers, but the envelope as well dnl # dnl FEATURE(masquerade_envelope)dnl dnl # dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well dnl # dnl FEATURE(masquerade_entire_domain)dnl dnl # dnl MASQUERADE_DOMAIN(localhost)dnl dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl dnl MASQUERADE_DOMAIN(mydomain.lan)dnl MAILER(smtp)dnl MAILER(procmail)dnl dnl MAILER(cyrusv2)dnl python-augeas-1.2.0/test/testroot/etc/mail/spamassassin/000077500000000000000000000000001451643112200233415ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/mail/spamassassin/local.cf000066400000000000000000000004241451643112200247450ustar00rootroot00000000000000# These values can be overridden by editing ~/.spamassassin/user_prefs.cf # (see spamassassin(1) for details) # These should be safe assumptions and allow for simple visual sifting # without risking lost emails. required_hits 5 report_safe 0 rewrite_header Subject [SPAM] python-augeas-1.2.0/test/testroot/etc/mail/submit.mc000066400000000000000000000016551451643112200224670ustar00rootroot00000000000000divert(-1) # # Copyright (c) 2001-2003 Sendmail, Inc. and its suppliers. # All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # # # This is the prototype file for a set-group-ID sm-msp sendmail that # acts as a initial mail submission program. # divert(0)dnl sinclude(`/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(`linux setup')dnl define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl define(`confDONT_INIT_GROUPS', `True')dnl define(`confPID_FILE', `/var/run/sm-client.pid')dnl dnl define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl FEATURE(`use_ct_file')dnl dnl dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] FEATURE(`msp', `[127.0.0.1]')dnl python-augeas-1.2.0/test/testroot/etc/mail/trusted-users000066400000000000000000000001771451643112200234150ustar00rootroot00000000000000# trusted-users - users that can send mail as others without a warning # apache, mailman, majordomo, uucp, are good candidates python-augeas-1.2.0/test/testroot/etc/mail/virtusertable000066400000000000000000000034671451643112200234640ustar00rootroot00000000000000# A domain-specific form of aliasing, allowing multiple virtual domains to be # hosted on one machine. # # info@foo.com foo-info # info@bar.com bar-info # joe@bar.com error:nouser 550 No such user here # jax@bar.com error:5.7.0:550 Address invalid # @baz.org jane@example.net # # then mail addressed to info@foo.com will be sent to the address foo-info, # mail addressed to info@bar.com will be delivered to bar-info, and mail # addressed to anyone at baz.org will be sent to jane@example.net, mail to # joe@bar.com will be rejected with the specified error message, and mail to # jax@bar.com will also have a RFC 1893 compliant error code 5.7.0. # # The username from the original address is passed as %1 allowing: # # @foo.org %1@example.com # # Additionally, if the local part consists of "user+detail" then "detail" is # passed as %2 and "+detail" is passed as %3 when a match against user+* is # attempted, so entries like # # old+*@foo.org new+%2@example.com # gen+*@foo.org %2@example.com # +*@foo.org %1%3@example.com # X++@foo.org Z%3@example.com # @bar.org %1%3 # # Note: to preserve "+detail" for a default case (@domain) %1%3 must be used # as RHS. There are two wildcards after "+": "+" matches only a non-empty # detail, "*" matches also empty details, e.g., user+@foo.org matches# # +*@foo.org but not ++@foo.org. This can be used to ensure that the # parameters %2 and %3 are not empty. # # All the host names on the left hand side (foo.com, bar.com, and baz.org) # must be in class {w} or class {VirtHost}. The latter can be defined by the # macros VIRTUSER_DOMAIN or VIRTUSER_DOMAIN_FILE (analogously to # MASQUERADE_DOMAIN and MASQUERADE_DOMAIN_FILE). If VIRTUSER_DOMAIN or # VIRTUSER_DOMAIN_FILE is used, then the entries of class {VirtHost} are # added to class {R}, i.e., relaying is allowed to (and from) those domains. python-augeas-1.2.0/test/testroot/etc/motd000066400000000000000000000000001451643112200205660ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/networks000066400000000000000000000000721451643112200215100ustar00rootroot00000000000000default 0.0.0.0 loopback 127.0.0.0 link-local 169.254.0.0 python-augeas-1.2.0/test/testroot/etc/nsswitch.conf000066400000000000000000000032401451643112200224220ustar00rootroot00000000000000# # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis passwd: files shadow: files group: files #hosts: db files nisplus nis dns hosts: files dns # Example - obey only what nisplus tells us... #services: nisplus [NOTFOUND=return] files #networks: nisplus [NOTFOUND=return] files #protocols: nisplus [NOTFOUND=return] files #rpc: nisplus [NOTFOUND=return] files #ethers: nisplus [NOTFOUND=return] files #netmasks: nisplus [NOTFOUND=return] files bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files netgroup: nisplus publickey: nisplus automount: files nisplus aliases: files nisplus python-augeas-1.2.0/test/testroot/etc/ntp.conf000066400000000000000000000036331451643112200213670ustar00rootroot00000000000000# For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5). driftfile /var/lib/ntp/drift # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery # Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict 127.0.0.1 restrict -6 ::1 # Hosts on local network are less restricted. #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 0.fedora.pool.ntp.org dynamic server 1.fedora.pool.ntp.org dynamic server 2.fedora.pool.ntp.org dynamic #broadcast 192.168.1.255 autokey # broadcast server #broadcastclient # broadcast client #broadcast 224.0.1.1 autokey # multicast server #multicastclient 224.0.1.1 # multicast client #manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 autokey # manycast client # Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. #server 127.127.1.0 # local clock #fudge 127.127.1.0 stratum 10 # Enable public key cryptography. #crypto includefile /etc/ntp/crypto/pw # Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys /etc/ntp/keys # Specify the key identifiers which are trusted. #trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility. #requestkey 8 # Specify the key identifier to use with the ntpq utility. #controlkey 8 # Enable writing of statistics records. #statistics clockstats cryptostats loopstats peerstats python-augeas-1.2.0/test/testroot/etc/ntp/000077500000000000000000000000001451643112200205135ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/ntp/crypto/000077500000000000000000000000001451643112200220335ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/ntp/crypto/pw000066400000000000000000000002551451643112200224060ustar00rootroot00000000000000# Specify the password to decrypt files containing private keys and identity # parameters. This is required only if these files have been encrypted. # #crypto pw apassword python-augeas-1.2.0/test/testroot/etc/ntp/keys000066400000000000000000000001111451643112200214020ustar00rootroot00000000000000# # PLEASE DO NOT USE THE DEFAULT VALUES HERE. # #65535 M akey #1 M pass python-augeas-1.2.0/test/testroot/etc/ntp/ntpservers000066400000000000000000000000171451643112200226470ustar00rootroot00000000000000217.79.182.184 python-augeas-1.2.0/test/testroot/etc/ntp/step-tickers000066400000000000000000000000141451643112200230460ustar00rootroot00000000000000134.34.3.19 python-augeas-1.2.0/test/testroot/etc/passwd000066400000000000000000000044121451643112200211370ustar00rootroot00000000000000root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin news:x:9:13:news:/etc/news: uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin operator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin gopher:x:13:30:gopher:/var/gopher:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:99:99:Nobody:/:/sbin/nologin nscd:x:28:28:NSCD Daemon:/:/sbin/nologin vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin tcpdump:x:72:72::/:/sbin/nologin rpm:x:37:37:RPM user:/var/lib/rpm:/sbin/nologin hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin ntp:x:38:38::/etc/ntp:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin pulse:x:499:497:PulseAudio daemon:/:/sbin/nologin avahi:x:498:494:avahi-daemon:/var/run/avahi-daemon:/sbin/nologin apache:x:48:48:Apache:/var/www:/sbin/nologin mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin torrent:x:497:493:BitTorrent Seed/Tracker:/var/lib/bittorrent:/sbin/nologin polkituser:x:87:87:PolicyKit:/:/sbin/nologin haldaemon:x:68:68:HAL daemon:/:/sbin/nologin gdm:x:42:42::/var/lib/gdm:/sbin/nologin testuser:x:500:500:Test User:/home/testuser:/bin/bash openvpn:x:496:489:OpenVPN:/etc/openvpn:/sbin/nologin smolt:x:495:488:Smolt:/usr/share/smolt:/sbin/nologin tomcat:x:91:91:Apache Tomcat:/usr/share/tomcat5:/bin/sh jetty:x:494:487::/usr/share/jetty:/bin/sh rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin akmodsd:x:493:484:User is used by akmodsd to build akmod packages:/var/cache/akmodsd/:/sbin/nologin backuppc:x:492:483::/var/lib/BackupPC:/sbin/nologin akmods:x:491:482:User is used by akmods to build akmod packages:/var/cache/akmods/:/sbin/nologin bacula:x:490:481:Bacula Backup System:/var/spool/bacula:/sbin/nologin dovecot:x:97:97:dovecot:/usr/libexec/dovecot:/sbin/nologin python-augeas-1.2.0/test/testroot/etc/ppp/000077500000000000000000000000001451643112200205115ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/ppp/chap-secrets000066400000000000000000000003501451643112200230130ustar00rootroot00000000000000# Secrets for authentication using CHAP # client server secret IP addresses ####### system-config-network will overwrite this part!!! (begin) ########## ####### system-config-network will overwrite this part!!! (end) ############ python-augeas-1.2.0/test/testroot/etc/ppp/ioptions000066400000000000000000000000001451643112200222660ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/ppp/options000066400000000000000000000000051451643112200221220ustar00rootroot00000000000000lock python-augeas-1.2.0/test/testroot/etc/ppp/pap-secrets000066400000000000000000000003501451643112200226600ustar00rootroot00000000000000# Secrets for authentication using CHAP # client server secret IP addresses ####### system-config-network will overwrite this part!!! (begin) ########## ####### system-config-network will overwrite this part!!! (end) ############ python-augeas-1.2.0/test/testroot/etc/ppp/peers/000077500000000000000000000000001451643112200216275ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/ppp/peers/wvdial000066400000000000000000000000361451643112200230370ustar00rootroot00000000000000noauth name wvdial usepeerdns python-augeas-1.2.0/test/testroot/etc/ppp/pppoe-server-options000066400000000000000000000001501451643112200245500ustar00rootroot00000000000000# PPP options for the PPPoE server # LIC: GPL require-pap login lcp-echo-interval 10 lcp-echo-failure 2 python-augeas-1.2.0/test/testroot/etc/resolv.conf000066400000000000000000000000421451643112200220670ustar00rootroot00000000000000search home nameserver 127.0.0.1 python-augeas-1.2.0/test/testroot/etc/samba/000077500000000000000000000000001451643112200207755ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/samba/lmhosts000066400000000000000000000000241451643112200224050ustar00rootroot00000000000000127.0.0.1 localhost python-augeas-1.2.0/test/testroot/etc/samba/smb.conf000066400000000000000000000230731451643112200224320ustar00rootroot00000000000000# This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # For a step to step guide on installing, configuring and using samba, # read the Samba-HOWTO-Collection. This may be obtained from: # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf # # Many working examples of smb.conf files can be found in the # Samba-Guide which is generated daily and can be downloaded from: # http://www.samba.org/samba/docs/Samba-Guide.pdf # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #--------------- # SELINUX NOTES: # # If you want to use the useradd/groupadd family of binaries please run: # setsebool -P samba_domain_controller on # # If you want to share home directories via samba please run: # setsebool -P samba_enable_home_dirs on # # If you create a new directory you want to share you should mark it as # "samba-share_t" so that selinux will let you write into it. # Make sure not to do that on system directories as they may already have # been marked with othe SELinux labels. # # Use ls -ldZ /path to see which context a directory has # # Set labels only on directories you created! # To set a label use the following: chcon -t samba_share_t /path # # If you need to share a system created directory you can use one of the # following (read-only/read-write): # setsebool -P samba_export_all_ro on # or # setsebool -P samba_export_all_rw on # # If you want to run scripts (preexec/root prexec/print command/...) please # put them into the /var/lib/samba/scripts directory so that smbd will be # allowed to run them. # Make sure you COPY them and not MOVE them so that the right SELinux context # is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts # #-------------- # #======================= Global Settings ===================================== [global] # ----------------------- Netwrok Related Options ------------------------- # # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH # # server string is the equivalent of the NT Description field # # netbios name can be used to specify a server name not tied to the hostname # # Interfaces lets you configure Samba to use multiple interfaces # If you have multiple network interfaces then you can list the ones # you want to listen on (never omit localhost) # # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can # specifiy it as a per share option as well # workgroup = WORKGROUP server string = MYSERVER ; netbios name = MYSERVER ; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 ; hosts allow = 127. 192.168.12. 192.168.13. # --------------------------- Logging Options ----------------------------- # # Log File let you specify where to put logs and how to split them up. # # Max Log Size let you specify the max size log files should reach # logs split per machine log file = /var/log/samba/log.%m # max 50KB per log file, then rotate max log size = 50 # ----------------------- Standalone Server Options ------------------------ # # Scurity can be set to user, share(deprecated) or server(deprecated) # # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration. security = user passdb backend = tdbsam # ----------------------- Domain Members Options ------------------------ # # Security must be set to domain or ads # # Use the realm option only with security = ads # Specifies the Active Directory realm the host is part of # # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration. # # Use password server option only with security = server or if you can't # use the DNS to locate Domain Controllers # The argument list may include: # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] # or to auto-locate the domain controller/s # password server = * ; security = domain ; passdb backend = tdbsam ; realm = MY_REALM ; password server = # ----------------------- Domain Controller Options ------------------------ # # Security must be set to user for domain controllers # # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration. # # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job # # Domain Logons let Samba be a domain logon server for Windows workstations. # # Logon Scrpit let yuou specify a script to be run at login time on the client # You need to provide it in a share called NETLOGON # # Logon Path let you specify where user profiles are stored (UNC path) # # Various scripts can be used on a domain controller or stand-alone # machine to add or delete corresponding unix accounts # security = user passdb backend = tdbsam # domain master = yes # domain logons = yes # the login script name depends on the machine name ; logon script = %m.bat # the login script name depends on the unix user used ; logon script = %u.bat ; logon path = \\%L\Profiles\%u # disables profiles support by specifing an empty path ; logon path = ; add user script = /usr/sbin/useradd "%u" -n -g users ; add group script = /usr/sbin/groupadd "%g" ; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u" ; delete user script = /usr/sbin/userdel "%u" ; delete user from group script = /usr/sbin/userdel "%u" "%g" ; delete group script = /usr/sbin/groupdel "%g" # ----------------------- Browser Control Options ---------------------------- # # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply # # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable # # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ; local master = no ; os level = 33 ; preferred master = yes #----------------------------- Name Resolution ------------------------------- # Windows Internet Name Serving Support Section: # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both # # - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server # # - WINS Server: Tells the NMBD components of Samba to be a WINS Client # # - WINS Proxy: Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. # # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. ; wins support = yes ; wins server = w.x.y.z ; wins proxy = yes ; dns proxy = yes # --------------------------- Printing Options ----------------------------- # # Load Printers let you load automatically the list of printers rather # than setting them up individually # # Cups Options let you pass the cups libs custom options, setting it to raw # for example will let you use drivers on your Windows clients # # Printcap Name let you specify an alternative printcap file # # You can choose a non default printing system using the Printing option load printers = yes cups options = raw ; printcap name = /etc/printcap #obtain list of printers automatically on SystemV ; printcap name = lpstat ; printing = cups # --------------------------- Filesystem Options --------------------------- # # The following options can be uncommented if the filesystem supports # Extended Attributes and they are enabled (usually by the mount option # user_xattr). Thess options will let the admin store the DOS attributes # in an EA and make samba not mess with the permission bits. # # Note: these options can also be set just per share, setting them in global # makes them the default for all shares ; map archive = no ; map hidden = no ; map read only = no ; map system = no ; store dos attributes = yes #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = no writable = yes ; valid users = %S ; valid users = MYDOMAIN\%S [printers] comment = All Printers browseable = no printable = yes writable = no public = yes guest ok = yes path = /var/spool/samba printer admin = root # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service ; path = /var/lib/samba/netlogon ; guest ok = yes ; writable = no ; share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ; [Profiles] ; path = /var/lib/samba/profiles ; browseable = no ; guest ok = yes # A publicly accessible directory, but read only, except for people in # the "staff" group [public] comment = Public Stuff path = /pub public = yes writable = yes printable = no ; write list = +staff python-augeas-1.2.0/test/testroot/etc/samba/smbusers000066400000000000000000000001411451643112200225570ustar00rootroot00000000000000# Unix_name = SMB_name1 SMB_name2 ... root = administrator admin nobody = guest pcguest smbguest python-augeas-1.2.0/test/testroot/etc/sensors.conf000066400000000000000000002462731451643112200222730ustar00rootroot00000000000000# Sensors configuration file used by 'libsensors' #------------------------------------------------ # ########################################################################## # # # PLEASE READ THIS HELPFUL HINT!!! # # # # The 'set' lines (generally for min and max values) # # do not take effect until you run 'sensors -s' as root !!! # # We suggest you put 'sensors -s' in a /etc/rc.d/... file # # to be run at boot time after the modules are inserted !!! # # # ########################################################################## # # # OVERVIEW # -------- # This configuration file will be used by all userspace applications # linked to libsensors. It is NOT used by the lm_sensors drivers directly. # # This config file consists of two parts: the heavily commented LM78 # example, and the real parts. Search for '####' if you want to skip # to the real stuff. # # Hash marks introduce comments, which continue until the end of a line. # # Identifiers consisting of only digits and letters can be used # unquoted; other identifiers must be quoted. Escape characters within # quotes operate like those in C. # # # CHIP LINES # ---------- # A 'chip' line specifies what the following 'label', 'compute', 'set' and # 'ignore' lines refer to. In this case, until the # next 'chip' line, everything refers to all lm78, lm78-j and lm79 # chips. Other examples are *-isa-* for everything on the ISA bus, and # lm78-j-i2c-*-4e for all lm78-j chips on address 0x4e of any I2C bus. # # If more chip statements match a specific chip, they are all considered. # Later lines overrule earlier lines, so if you set the in0 label for # lm78-* to "This", and later on the in0 label for lm78-isa-* to "That", # "That" is used for LM78 chips on the ISA bus, and "This" for LM78 # chips on a non-ISA bus. # # chip "lm78-*" "lm78-j-*" "lm79-*" # # # FEATURE NAMES # ------------- # Feature names are used in 'label', 'compute', 'set', and 'ignore' lines. # Example feature names are 'in0', 'temp2', 'in3_min', and 'temp3_over'. # These features are defined for each chip in lib/chips.c. # # Undefined features will be silently ignored in 'label' and 'compute' lines. # Undefined features in 'set' lines will result in 'Unknown feature name' # when running 'sensors -s'. # # Unfortunately, feature names starting with a number must be in # double quotes or you get "parse error, expecting 'NAME'". # # If you have trouble, verify the features in lib/chips.c!!! # # # LABEL LINES # ----------- # A label line describes what a certain feature stands for on your # mainboard. Programs can retrieve these names and display them. # If no label is specified for a certain feature, the default name # (ie. 'fan1' for fan1) is used. # # If you specify a label for in1, this label is also used for in1_min and # in1_max, unless they have their own labels declared. There are several # of these logical groups. # # These are as advised in the LM78 and LM79 data sheets, and used on most # boards we have seen. # # label in0 "VCore 1" # label in1 "VCore 2" # label in2 "+3.3V" # label in3 "+5V" # label in4 "+12V" # label in5 "-12V" # label in6 "-5V" # # # COMPUTE LINES # ------------- # A compute line describes how to scale a certain feature. There are # two expressions in it: the first describes how the /proc value must # be translated to a user value, the second how a user value must be # translated to a /proc value. '@' is the value to operate on. You may # refer to other readable features (like '2 * vid'). # # The following operators are valid: + - * / ( ) ^ ` # ^ is e**x and ` is ln(x) (valid in library version 2.0.0 / # lm_sensors 2.8.0 or higher) # # Like for the label statement, there are logical groups here. They are # sometimes a bit different, though. For example, fan1_div is in the # logical label group of fan1 (it gets the same label if none is declared # for it), but it is not in the compute group of fan1 (as it uses a # completely different system of values). # # # VOLTAGE COMPUTATION DETAILS # --------------------------- # Most voltage sensors in sensor chips have a range of 0 to 4.096 Volts. # This is generally sufficient for the 3.3 and CPU (2.5V, for example) # supply voltages, so the sensor chip reading is the actual voltage. # # Other supply voltages must be scaled with an external resistor network. # The chip driver generally reports the 'raw' value 0 - 4.09 V, and the # userspace application must convert this raw value to an actual voltage. # The 'compute' lines provide this facility. # # Unfortunately the resistor values vary among motherboard types. # Therefore you may have to adjust the computations in this file # to match your motherboard. # # For positive voltages (in3, in4), two resistors are used, with the following # formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage) # R1 = R2 * (Vs/Vin - 1) # For negative voltages (in5, in6) two resistors are used, with the following # formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage) # Rin = (Vs * Rf) / Vin # # Note: Some chips use a different formula, see it87 section for example. # # Here are the official LM78 and LM79 data sheet values. # Vs R1,Rin R2,Rf Vin # in3 +5.0 6.8 10 +2.98 # in4 +12.0 30 10 +3.00 # in5 -12.0 240 60 +3.00 # in6 -5.0 100 60 +3.00 # # These would lead to these declarations: # compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) # compute in4 ((30/10)+1)*@ , @/((30/10)+1) # compute in5 -(240/60)*@ , -@/(240/60) # compute in6 -(100/60)*@ , -@/(100/60) # # On almost any mainboard we have seen, the Winbond compute values lead to # much better results, though. # # Vs R1,Rin R2,Rf Vin # in4 +12.0 28 10 +3.15 # in5 -12.0 210 60.4 +3.45 # in6 -5.0 90.9 60.4 +3.33 # # These leads to these declarations: # compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) # compute in4 ((28/10)+1)*@ , @/((28/10)+1) # compute in5 -(210/60.4)*@ , -@/(210/60.4) # compute in6 -(90.9/60.4)*@ , -@/(90.9/60.4) # # NOTE: On many motherboards, the -5V and -12V sensors are not connected. # Add ignore lines so these readings will not be displayed. For example: # ignore in5 # ignore in6 # # # TEMPERATURE COMPUTATION EXAMPLES # -------------------------------- # There are two common ways to adjust temperature readings. # One is to adjust by a constant. The other is to change the # temperature sensor type. # # Add 5 degrees to temperature sensor 1: # compute temp1 @+5,@-5 # # Sensor type adjustments (certain chips only): # ...Set temp1 to processor's thermal diode: # set sensor1 1 (Winbond chips) # set sensor1 3 (IT87xx and MTP008 chips) # # ...Set temp1 sensor to 3904 transistor: # set sensor1 2 (Winbond chips) # # ...Set temp1 to thermistor: # set sensor1 3435 (Winbond chips) # set sensor1 2 (IT87xx and MTP008 chips) # # Often, a temperature sensor is disconnected; disable it with an ignore line: # ignore temp3 # # # SET LINES # --------- # Set statements set things like limits. Complete expressions can be # used. Not everything can sensibly be set: setting 'in0', for example, # is impossible! These settings are put through the compute translations; # so if we specify '12.8' for in6, '3.2' will actually be written! # # Important note: In the 'sensors' program, these only take effect # after running 'sensors -s'!!! # # Here are some examples: # # set in0_max vid*1.05 # set in0_min vid*0.95 # set temp1_over 40 # set temp1_hyst 37 # # Think of tempx_over as 'alarm set' and tempx_hyst as 'alarm clear' # thresholds. In most cases the 'over' value should be higher than # the 'hyst' value by several degrees. # # All the set statements from this file are commented out by default. # The reason is that the proper limits are highly system-dependent, # and writing improper limits may have all sorts of weird effects, # from beeping to CPU throttling to instant reboot. If you want to # actually set the limits, remove the comment marks. # # # IGNORE LINES # ------------ # Ignore statements tell certain features are not wanted. User programs can # still read them if they really want, though; this is just an advisory # marking. 'in0' would also invalidate 'in0_max' and 'in0_min'. # 'ignore' does not disable anything in the actual sensor chip; it # simply advises the user program to not access that data. # # ignore in0 # # # STATEMENT ORDER # --------------- # Statements can go in any order, EXCEPT that some statements depend # on others. Dependencies could be either in the library or the driver. # A 'compute' statement must go before a 'set' statement # for the same feature or else the 'set' won't be computed correctly. # This is a library dependency. # A 'set fan1_div' statement must go before a 'set fan1_min' statement, # because the driver uses the divisor in calculating the minimum. # Also, one should set vrm prior to using vid in any formula. # # # BUS LINES # --------- # There is one other feature: the 'bus' statement. An example is below. # # bus "i2c-0" "SMBus PIIX4 adapter at e800" "Non-I2C SMBus adapter" # # If we refer from now on to 'i2c-0' in 'chip' lines, this will run-time # be matched to this bus. So even if the PIIX4 is called 'i2c-5' at that # moment, because five other adapters were detected first, 'i2c-0' in # the config file would always only match this physical bus. In the above # config file, this feature is not needed; but the next lines would # only affect the LM75 chips on the PIIX4 adapter: # # chip "lm75-i2c-0-*" # # You should really use the output of /proc/bus/chips to generate bus lines, # because one mistyped characted will inhibit the match. Wildcards are not # yet supported; spaces at the end are ignored, though. # # # BEEPS # ----- # Some chips support alarms with beep warnings. When an alarm is triggered # you can be warned by a beeping signal through your computer speaker. It # is possible to enable beeps for all alarms on a chip using the following # line: # # set beep_enable 1 # # or disable them using: # # set beep_enable 0 # # ########################################################################## #### Here begins the real configuration file chip "lm78-*" "lm78-j-*" "lm79-*" "w83781d-*" # These are as advised in the LM78 and LM79 data sheets, and used on almost # any mainboard we have seen. label in0 "VCore 1" label in1 "VCore 2" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "-12V" label in6 "-5V" # For positive voltages (in3, in4), two resistors are used, with the following # formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage) # R1 = R2 * (Vs/Vin - 1) # For negative voltages (in5, in6) two resistors are used, with the following # formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage) # Rin = (Vs * Rf) / Vin # # Here are the official LM78 and LM79 data sheet values. # Vs R1,Rin R2,Rf Vin # in3 +5.0 6.8 10 +2.98 # in4 +12.0 30 10 +3.00 # in5 -12.0 240 60 +3.00 # in6 -5.0 100 60 +3.00 # # These would lead to these declarations: # compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) # compute in4 ((30/10)+1)*@ , @/((30/10)+1) # compute in5 -(240/60)*@ , -@/(240/60) # compute in6 -(100/60)*@ , -@/(100/60) # # On almost any mainboard we have seen, the Winbond compute values lead to # much better results, though. # # Vs R1,Rin R2,Rf Vin # in4 +12.0 28 10 +3.15 # in5 -12.0 210 60.4 +3.45 # in6 -5.0 90.9 60.4 +3.33 # # These leads to these declarations: compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((28/10)+1)*@ , @/((28/10)+1) compute in5 -(210/60.4)*@ , -@/(210/60.4) compute in6 -(90.9/60.4)*@ , -@/(90.9/60.4) # Here, we assume the VID readings are valid, and we use a max. 5% deviation # set in0_min vid*0.95 # set in0_max vid*1.05 # set in1_min vid*0.95 # set in1_max vid*1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.95 # set in4_max 12 * 1.05 # set in5_max -12 * 0.95 # set in5_min -12 * 1.05 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # Examples for lm78, lm78j, lm79 temperature limits # set temp_over 40 # set temp_hyst 37 # Examples for w83781d temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 # set temp3_over 52 # set temp3_hyst 47 # Examples of fan low speed limits # set fan1_min 3000 # set fan2_min 3000 # set fan3_min 3000 # Ignore fans you don't actually have # ignore fan1 # ignore fan2 # ignore fan3 # In case a lm78 is used together with a lm75, the lm78 temp sensor will # generally show the M/B temperature while the lm75 temp sensor will show # the CPU temperature. # label temp "M/B Temp" # Uncomment the following line to enable beeps for all alarms on this chip # set beep_enable 1 chip "lm75-*" # Most boards don't need scaling. Following is for the Asus TX97-E. # compute temp @*2.0, @/2.0 # Examples for temperature limits # set temp_over 70 # set temp_hyst 65 # In case a lm75 is used together with a lm78, the lm78 temp sensor will # generally show the M/B temperature while the lm75 temp sensor will show # the CPU temperature. # label temp "CPU Temp" chip "sis5595-*" label in0 "VCore 1" label in1 "VCore 2" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((28/10)+1)*@ , @/((28/10)+1) # set in0_min 2.0 * 0.95 # set in0_max 2.0 * 1.05 # set in1_min 2.0 * 0.95 # set in1_max 2.0 * 1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.95 # set in4_max 12 * 1.05 # # SiS5595 temperature calculation # The driver currently includes a calculation due to the wide # variation in thermistor types on SiS5595 motherboards. # The driver currently has a calculation of t = (.83x + 52.12). # One user reports the correct formula of t = (.345x - 12). # So you want to put a compute line in sensors.conf that has # the inverse of the driver formula, and put your formula on top of it. # The inverse of the driver formula is x = (1.20t - 62.77) # So the final formula is newt = (.345(1.20t - 62.77)) - 12). # Put this in the sensors.conf file as # compute temp ((.345 * ((1.20 * @) - 62.77)) - 12), ... # where ... is the inverse function I leave to you. # # Look in your 'Vendor.ini' file to see which one is present # on your motherboard. Look for the line like: # [Temp1] # ThermistorType = NTC-10KC15-1608-1P # Fix up a 'compute' line to match your thermistor type. # Warning. You still don't have enough information to do this. # ThermistorType = NTC-10KC15-1608-1P (10K at 25C; Beta = 3435) # compute temp ((X * ((1.20 * @) - 62.77)) - Y), ... # ThermistorType = NTC-103KC15-1608-1P (??) # compute temp ((X * ((1.20 * @) - 62.77)) - Y), ... # ThermistorType = NTC-103AT-2 (10K at 25C; Beta = 3435) # compute temp ((X * ((1.20 * @) - 62.77)) - Y), ... # ThermistorType = NTC-103JT (10K at 25C; Beta = 3435) # compute temp ((X * ((1.20 * @) - 62.77)) - Y), ... # examples for sis5595 temperature limits; # for sis5595, temp_hyst is really the low limit, not a hysteresis value # set temp_over 40 # set temp_hyst 37 chip "w83782d-*" "w83627hf-*" # Same as above for w83781d except that in5 and in6 are computed differently. # Rather than an internal inverting op amp, the 82d/83s use standard positive # inputs and the negative voltages are level shifted by a 3.6V reference. # The math is convoluted, so we hope that your motherboard # uses the recommended resistor values. label in0 "VCore 1" label in1 "VCore 2" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "-12V" label in6 "-5V" label in7 "V5SB" label in8 "VBat" # Abit BP6 motherboard has a few differences. VCore1 and VCore2 are the core # voltages of the two processors. Vtt is memory bus termination resistors # voltage. # label in1 "Vtt" # label in8 "VCore2" compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((28/10)+1)*@ , @/((28/10)+1) compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14 compute in6 (3.14 * @) - 7.71 , (@ + 7.71) / 3.14 compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1) # adjust this if your vid is wrong; see doc/vid # set vrm 9.0 # set limits to 5% for the critical voltages # set limits to 10% for the non-critical voltages # set limits to 20% for the battery voltage # set in0_min vid*0.95 # set in0_max vid*1.05 # set in1_min vid*0.95 # set in1_max vid*1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.90 # set in4_max 12 * 1.10 # set in5_max -12 * 0.90 # set in5_min -12 * 1.10 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 # set in8_min 3.0 * 0.80 # set in8_max 3.0 * 1.20 # set up sensor types (thermistor is default) # 1 = PII/Celeron Diode; 2 = 3904 transistor; # 3435 = thermistor with Beta = 3435 # If temperature changes very little, try 1 or 2. # set sensor1 1 # set sensor2 2 # set sensor3 3435 # examples for temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 # set temp3_over 52 # set temp3_hyst 47 chip "w83783s-*" # Same as above for w83781d except that in5 and in6 are computed differently. # Rather than an internal inverting op amp, the 82d/83s use standard positive # inputs and the negative voltages are level shifted by a 3.6V reference. # The math is convoluted, so we hope that your motherboard # uses the recommended resistor values. label in0 "VCore 1" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "-12V" label in6 "-5V" compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((28/10)+1)*@ , @/((28/10)+1) compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14 compute in6 (3.14 * @) - 7.71 , (@ + 7.71) / 3.14 # adjust this if your vid is wrong; see doc/vid # set vrm 9.0 # set limits to 5% for the critical voltages # set limits to 10% for the non-critical voltages # set limits to 20% for the battery voltage # set in0_min vid*0.95 # set in0_max vid*1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.90 # set in4_max 12 * 1.10 # set in5_max -12 * 0.90 # set in5_min -12 * 1.10 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # set up sensor types (thermistor is default) # 1 = PII/Celeron Diode; 2 = 3904 transistor; # 3435 = thermistor with Beta = 3435 # If temperature changes very little, try 1 or 2. # set sensor1 1 # set sensor2 2 # examples for temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 chip "w83697hf-*" # Same as above for w83781d except that in5 and in6 are computed differently. # Rather than an internal inverting op amp, the 82d/83s use standard positive # inputs and the negative voltages are level shifted by a 3.6V reference. # The math is convoluted, so we hope that your motherboard # uses the recommended resistor values. # no in1 on this chip. label in0 "VCore" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "-12V" label in6 "-5V" label in7 "V5SB" label in8 "VBat" # Tyan Trinity S2495 KT400 has a few differences. Thanks to Eric Schumann # for proving this information. Same is true for Epox 8K3A and 8KHA+. # Thanks to Thomas Schorpp for additional feedback. # label in2 "VAgp" # label in5 "+3.3V" # aka. Vio # label in6 "Vdimm" # label in7 "VBat" # label in8 "V5SB" # # You'll also want to comment out the in5 and in6 compute lines right below, # and rename compute in7 to compute in8. compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((28/10)+1)*@ , @/((28/10)+1) compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14 compute in6 (3.14 * @) - 7.71 , (@ + 7.71) / 3.14 compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1) # 697HF does not have VID inputs so you MUST set your core # voltage limits below. Currently set for 1.8V core. # vvv # set in0_min 1.8 * 0.95 # set in0_max 1.8 * 1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.90 # set in4_max 12 * 1.10 # set in5_max -12 * 0.90 # set in5_min -12 * 1.10 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 # set in8_min 3.0 * 0.80 # set in8_max 3.0 * 1.20 # And for Tyan Trinity S2495 KT400 and Epox 8K3A and 8KHA+: # set in2_min 1.5 * 0.95 # set in2_max 1.5 * 1.05 # set in5_min 3.3 * 0.95 # set in5_max 3.3 * 1.05 # set in6_min 2.5 * 0.95 # 2.6 on Epox # set in6_max 2.5 * 1.05 # 2.6 on Epox # set in7_min 3.0 * 0.90 # set in7_max 3.0 * 1.10 # set in8_min 5 * 0.90 # set in8_max 5 * 1.10 # set up sensor types (thermistor is default) # 1 = PII/Celeron Diode; 2 = 3904 transistor; # 3435 = thermistor with Beta = 3435 # If temperature changes very little, try 1 or 2. # set sensor1 1 # set sensor2 2 # set sensor3 3435 # examples for temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 chip "w83627thf-*" "w83637hf-*" # Rather than an internal inverting op amp, the 627thf uses standard positive # inputs and the negative voltages are level shifted by a 3.6V reference # (same as 82d/83s). # The math is convoluted, so we hope that your motherboard # uses the recommended resistor values. # Note that in1 (+12V) is the usual in4, and in4 (-12V) is the usual in5. # Data sheet is obviously wrong for in4, the usual formula should work. # No in5 nor in6. # sensors doesn't need the ignore lines but sensord does... ignore in5 ignore in6 label in0 "VCore" label in1 "+12V" label in2 "+3.3V" label in3 "+5V" label in4 "-12V" label in7 "V5SB" label in8 "VBat" # Mori Hiroyuki reported to need this (P4P800) # compute in0 @/2, @*2 compute in1 ((28/10)+1)*@, @/((28/10)+1) compute in3 ((34/51)+1)*@, @/((34/51)+1) compute in4 (5.14*@)-14.91, (@+14.91)/5.14 compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1) # adjust this if your vid is wrong; see doc/vid # set vrm 9.0 # set limits to 5% for the critical voltages # set limits to 10% for the non-critical voltages # set limits to 20% for the battery voltage # if your vid is wrong, you'll need to adjust in0_min and in0_max # set in0_min vid * 0.95 # set in0_max vid * 1.05 # set in1_min 12 * 0.90 # set in1_max 12 * 1.10 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min -12 * 1.10 # set in4_max -12 * 0.90 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 # set in8_min 3.0 * 0.80 # set in8_max 3.0 * 1.20 # set up sensor types (thermistor is default) # 1 = PII/Celeron Diode; 2 = 3904 transistor; # 3435 = thermistor with Beta = 3435 # If temperature changes very little, try 1 or 2. # set sensor1 1 # set sensor2 2 # set sensor3 3435 label temp1 "M/B Temp" label temp2 "CPU Temp" # ignore temp3 # examples for temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 # set temp3_over 52 # set temp3_hyst 47 # ignore fan1 label fan2 "CPU Fan" # ignore fan3 # Here are configurations for Winbond W83792AD/D chip. chip "w83792d-*" label in0 "VCoreA" label in1 "VCoreB" label in2 "VIN0" label in3 "VIN1" label in4 "VIN2" label in5 "VIN3" label in6 "5VCC" label in7 "5VSB" label in8 "VBAT" label fan1 "Fan1" label fan2 "Fan2" label fan3 "Fan3" label fan4 "Fan4" label fan5 "Fan5" label fan6 "Fan6" label fan7 "Fan7" label temp1 "Temp1" label temp2 "Temp2" label temp3 "Temp3" # set in0_min 1.4 # set in0_max 1.6 # set in1_min 1.4 # set in1_max 1.6 # set in2_min 3.2 # set in2_max 3.4 # set in3_min 3.1 # set in3_max 3.3 # set in4_min 1.4 # set in4_max 1.5 # set in5_min 2.6 # set in5_max 2.65 # set in6_min 5 * 0.95 # set in6_max 5 * 1.05 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 # set in8_min 3 * 0.95 # set in8_max 3 * 1.05 # fan1 adjustments examples # set fan1_div 4 # set fan1_min 1500 # temp2 limits examples # set temp2_over 42 # set temp2_hyst 37 # ignore examples # ignore fan7 # ignore temp3 # Here are configurations for Winbond W83793 chip. chip "w83793-*" label in0 "VCoreA" label in1 "VCoreB" label in2 "Vtt" label in5 "+3.3V" label in6 "+12V" label in7 "+5V" label in8 "5VSB" label in9 "VBAT" compute in6 12*@ , @/12 label temp1 "CPU1 Temp" label temp2 "CPU2 Temp" # fan1 adjustments examples # set fan1_min 1500 # temp2 limits examples # set temp2_max 45 # set temp2_max_hyst 40 # ignore examples # ignore fan7 # ignore temp3 chip "as99127f-*" # Asus won't release a datasheet so this is guesswork. # Thanks to Guntram Blohm, Jack, Ed Harrison, Artur Gawryszczak, # Victor G. Marimon and others for their feedback. # Dual power plane label in0 "VCore 1" label in1 "VCore 2" # Single power plane (A7V133, A7M266, CUV4X) # label in0 "VCore" # ignore in1 label in2 "+3.3V" label in3 "+5V" label in4 "+12V" # These last two may not make sense on all motherboards. label in5 "-12V" label in6 "-5V" compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((28/10)+1)*@ , @/((28/10)+1) # AS99127F rev.1 (same as w83781d) compute in5 -(240/60.4)*@ , -@/(240/60.4) compute in6 -(90.9/60.4)*@ , -@/(90.9/60.4) # AS99127F rev.2 (same as w83782d) # compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14 # compute in6 (3.14 * @) - 7.71 , (@ + 7.71) / 3.14 # Depending on your motherboard, you may have to use any of two formulae # for temp2. Quoting Artur Gawryszczak (edited to reflect subsequent fixes # to the driver): # "I guess, that the formula "(@*15/43)+25, (@-25)*43/15" is correct # for those Asus motherboards, which get CPU temperature from internal # thermal diode (Pentium Coppermine, and above), while no formula is needed # for Athlon/Duron boards, which use a thermistor in the socket." # An alternative formula was then found and reported by Victor G. Marimon. # Asus A7V133, Asus A7M266 # No compute line is needed # Asus CUV4X, Asus A7V8X # compute temp2 (@*15/43)+25, (@-25)*43/15 # Asus CUSL2, Asus CUV266-DLS, Asus TUSL2-C # compute temp2 (@*30/43)+25, (@-25)*43/30 # See comments above if temp3 looks bad. What works for temp2 is likely # to work for temp3 for dual-CPU boards, such as the CUV4X-D. # Most Asus boards have temperatures settled like that: label temp1 "M/B Temp" label temp2 "CPU Temp" # However, some boards have them swapped (A7N8X Deluxe rev.2, # A7N8X-E Deluxe rev.2, CUV4X): # label temp1 "CPU Temp" # label temp2 "M/B Temp" # Most boards have no temp3 by default, except for dual-CPU boards. # label temp3 "CPU 2 Temp" # ignore temp3 # adjust this if your vid is wrong; see doc/vid # set vrm 9.0 # set limits to 5% for the critical voltages # set limits to 10% for the non-critical voltages # set limits to 20% for the battery voltage # set in0_min vid*0.95 # set in0_max vid*1.05 # set in1_min vid*0.95 # set in1_max vid*1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.90 # set in4_max 12 * 1.10 # set in5_max -12 * 0.90 # set in5_min -12 * 1.10 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # examples for temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 # set temp3_over 52 # set temp3_hyst 47 chip "gl518sm-*" # IMPORTANT: in0, in1, and in2 values (+5, +3, and +12) CANNOT be read # unless you use the slow 'iterate' method. Limits will still # work even when iterate=0. See doc/chips/gl518sm. # Note that the 'iterate' method was trimmed while porting the # driver to Linux 2.6 as we considered it too ugly for the thin # benefit. # # Factors and labels taken from GL518SM datasheet, they seem to give # reasonable values with EISCA connected Fan78 label vdd "+5V" label vin1 "+3.3V" label vin2 "+12V" label vin3 "Vcore" # vin2 depends on external resistors (4,7k and 15k assumed here) # vin1 and vin3 require no scaling compute vin2 (197/47)*@ , @/(197/47) # set vdd_min 4.8 # set vdd_max 5.2 # set vin1_min 3.20 # set vin1_max 3.40 # set vin2_min 11.0 # set vin2_max 13.0 # set vin3_min 2.10 # set vin3_max 2.30 # set fan1_off 0 # set fan2_min 0 # Do NOT uncomment the following line with the Linux 2.6 kernel driver, # as it'll raise an error. # set iterate 2 chip "gl520sm-*" # Factors and labels taken from GL520SM datasheet # The GL520SM has two application modes. In mode 1 it has two thermistor # inputs, in mode 2 it has only one and an extra (negative) voltage input. # The mode is supposed to be set properly by your BIOS so you should not # need to change it. You can force it below if really needed though. # Note that this means that you have either temp2 or vin4 but never both # at the same time. # set two_temps 1 label vdd "+5V" label vin1 "+3.3V" label vin2 "+12V" label vin3 "Vcore" label vin4 "-12V" # vin1 and vin3 require no scaling # vin2 depends on external resistors (4,7k and 15k assumed) # vin4 = ((R1+R2)/R2)*@ - (R1/R2)*vdd # # -12 --| R1 |---t---| R2 |-- +5 # | # vin4 # compute vin2 (197/47)*@ , @/(197/47) compute vin4 (5*@)-(4*vdd) , (@+4*vdd)/5 # set vdd_min 4.8 # set vdd_max 5.2 # set vin1_min 3.20 # set vin1_max 3.40 # set vin2_min 11.0 # set vin2_max 13.0 # set vin3_min 2.10 # set vin3_max 2.30 chip "lm80-*" # The values below should be correct if you own a qdi BX (brilliant1) # mainboard. If not, please contact us, so we can figure out better readings. # Many thanks go to Peter T. Breuer for helping us figure # out how to handle the LM80. # For positive voltages (in0..in4), two resistors are used, with the following # formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage) # R1 = R2 * (Vs/Vin - 1) # For negative voltages (in5, in6) two resistors are used, with the following # formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage, # V5: +5V) # R3 = R4 * (Vs - Vin) / (Vin - V5) # Here are the official LM80 data sheet values. # Vs R1,R3 R2,R4 Vin # +2.5V 23.7 75 +1.9 # +3.3V 22.1 30 +1.9 # +5.0 24 14.7 +1.9 # +12.0 160 30.1 +1.9 # -12.0 160 35.7 +1.9 # -5.0 36 16.2 +1.9 # Now curiously enough, VCore is connected with (unknown) resistors, which # translate a +2.8V to +1.9V. So we use that in the computations below. label in0 "+5V" label in1 "VTT" label in2 "+3.3V" label in3 "+Vcore" label in4 "+12V" label in5 "-12V" label in6 "-5V" compute in0 (24/14.7 + 1) * @ , @ / (24/14.7 + 1) compute in2 (22.1/30 + 1) * @ , @ / (22.1/30 + 1) compute in3 (2.8/1.9) * @, @ * 1.9/2.8 compute in4 (160/30.1 + 1) * @, @ / (160/30.1 + 1) compute in5 (160/35.7)*(@ - in0) + @, (@ + in0 * 160/35.7)/ (1 + 160/35.7) compute in6 (36/16.2)*(@ - in0) + @, (@ + in0 * 36/16.2) / (1 + 36/16.2) # set in0_min 5 * 0.95 # set in0_max 5 * 1.05 # What is your VTT? It is probably not this value... # set in1_min 2*0.95 # set in1_max 2*1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # What is your VCore? It is probably not this value... # set in3_min 1.9 * 0.95 # set in3_max 1.9 * 1.05 # set in4_min 12 * 0.95 # set in4_max 12 * 1.05 # set in5_min -12 * 1.05 # set in5_max -12 * 0.95 # set in6_min -5 * 1.05 # set in6_max -5 * 0.95 # examples for lm80 temperature limits # WARNING - nonstandard names and functions for the lm80!!! # All 4 of these limits apply to the single temperature sensor. # "hot" is like the standard alarm for most chips. # "os" is the threshold for the overtemperature shutdown output. # "os" may or may not do anything on your motherboard but it should # be set higher than the "hot" thresholds. # Note that the /proc file 'temp" also has five entries instead of # the usual three. # set temp_hot_hyst 45 # set temp_hot_max 52 # set temp_os_hyst 57 # set temp_os_max 62 chip "maxilife-cg-*" "maxilife-co-*" "maxilife-as-*" label fan1 "HDD Fan" label fan2 "PCI Fan" label fan3 "CPU Fan" ignore fan4 label temp2 "PCI Temp" label temp4 "HDD Temp" label temp5 "CPU Temp" ignore temp6 label vid1 "V+12" ignore vid5 # vid1 need to be scaled by 6.337 other voltages # require no scaling compute vid1 6.337*@ , @/6.337 chip "maxilife-cg-*" ignore temp1 label temp3 "BX Temp" label vid2 "Vcpu1" label vid3 "Vcpu2" ignore vid4 chip "maxilife-co-*" label temp1 "CPU 1 Temp" label temp3 "CPU 2 Temp" label vid2 "Vcpu1" label vid3 "Vcpu2" label vid4 "VcacheL2" chip "maxilife-as-*" ignore temp1 ignore temp3 label vid2 "Vcpu" ignore vid3 ignore vid4 chip "maxilife-nba-*" label fan1 "CPU Fan" label fan2 "PCI Fan" label fan3 "HDD Fan" label fan4 "Heat Sink Fan" label temp1 "CPU 1 Temp" label temp2 "CPU 2 Temp" label temp3 "PCI/Ambient Temp" label temp4 "HDD Temp" label temp5 "Motherboard Temp" label temp6 "CPU Reference Temp" label vid1 "V+12" label vid2 "Vcpu1" label vid3 "Vcpu2" label vid4 "VcacheL2" label vid5 "V-12" chip "via686a-*" # VIA is very specific about the voltage sensor inputs, and our labels # reflect what they say. Unfortunately, they are not at all specific about # how to convert any of the register values to real units. Fortunately, # Jonathan Yew and Alex van Kaam # came through with some data for temp conversion and formulae for voltage # conversion. However, the conversions should be regarded as our best guess- # YMMV. # On the Tyan S1598, the 2.5V sensor reads 0 and is not displayed in the BIOS. # Linas Vepstas reports that this sensor shows nothing of # interest on the Abit KA7 (Athlon), and is also not displayed in the BIOS. # Likewise, Johannes Drechsel-Burkhard reports that this # sensor is unavailable in the BIOS of his MSI K7T Pro (Thunderbird). So, # if you have one of these boards you may want to uncomment the 'ignore 2.5V' # line below. label "2.0V" "CPU core" label "2.5V" "+2.5V" #ignore "2.5V" label "3.3V" "I/O" label "5.0V" "+5V" label "12V" "+12V" label fan1 "CPU Fan" label fan2 "P/S Fan" # VIA suggests that temp3 is an internal temp sensor for the 686a. However, # on the Tyan S1598 as well as the Abit KA7 (Athalon), the absolute values # of the readings from that sensor are not valid. The readings do seem to # correlate with temp changes, but the conversion factor may be quite # different from temp1 & temp2 (as noted above, VIA has not provided # conversion info). So, you may wish to 'ignore temp3'. # Johannes Drechsel-Burkhard notes that on his MSI K7T Pro, # temp1 is the CPU temp and temp2 is the SYS temp. Hugo van der Merwe notes # the same for his Gigabyte GA-7DXC, Olivier Martin for his Gigabyte # GA-7ZM and Patrick Thomson for his Chaintech CT-5ATA. # Thomas Anglmaier notes: on Epox EP-7kxa temp2 is CPU and temp1 is SYS. label temp1 "SYS Temp" label temp2 "CPU Temp" label temp3 "SBr Temp" #ignore temp3 # Set your CPU core limits here if the BIOS did not. #set in0_min 1.70 * 0.95 #set in0_max 1.70 * 1.05 # Other voltage values are standard so we can enforce the limits. # set in1_min 2.5 * 0.95 # set in1_max 2.5 * 1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5 * 0.9 # set in3_max 5 * 1.1 # set in4_min 12 * 0.9 # set in4_max 12 * 1.1 # Set your temp limits here. Remember, 'tempX_over' is the temp at which an # alarm is triggered, and 'tempX_hyst' is the temp at which an alarm turns off. # Setting tempX_hyst to a few degrees below the corresponding tempX_over # prevents an oscillation between alarm on and off states. This kind of # oscillation is known as hyteresis, thus the name. (You typically get the # most serious and troublesome hysteresis when a sensor triggers something to # reduce the temp, thus creating a negative feedback loop. Even without that, # we would still get some oscillation when the temp hovers around the limit # due to noise.) # set temp1_hyst 40 # set temp1_over 45 # set temp2_hyst 55 # set temp2_over 60 # set temp3_hyst 60 # set temp3_over 65 # You could set your fan limits too, but the defaults should be fine. #set fan1_min 5000 #set fan2_min 5000 chip "mtp008-*" # The values below should be correct if you own a Tyan S1834D motherboard. # If not, please contact us, so we can figure out better readings. # FOR TYAN S2510 SEE END OF THIS SECTION. # For positive voltages outside the 0..4.09V range (in2..in4), two resistors # are used, with the following formula (R1,R2: resistor values, Vs: read # voltage, Vin: pin voltage) # Vin = Vs * (R2 / (R1 + R2)) # For negative voltages (in5) two resistors are used, with the following # formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage) # Vin = ((4.096 - Vs) * (R3 / (R3 + R4))) + Vs # Here are the official MTP008 data sheet values: # Vs R1,R3 R2,R4 Vin # +12.0 28000 10000 +3.16 # -12.0 232000 56000 +0.96 # -5.0 120000 56000 +1.20 label in0 "VCore1" label in1 "+3.3V" label in2 "+12V" label in3 "Vcore2" ignore in4 label in5 "-12V" label in6 "Vtt" label fan1 "CPU1 Fan" label fan2 "CPU2 Fan" label fan3 "fan3" label temp1 "CPU1 Temp" label temp2 "CPU2 Temp" ignore temp3 compute in2 @ * 38 / 10, @ * 10 / 38 compute in5 (@ * 36 - 118.61) / 7, (118.61 + 7 * @) / 36 # examples for temperature limits # set temp1_over 40 # set temp1_hyst 37 # set temp2_over 52 # set temp2_hyst 47 # set temp3_over 52 # set temp3_hyst 47 # End of standard mtp008 configuration # TYAN S2510 INFORMATION # This motherboard has two mtp008's which are hooked up differently, # so they must be configured separately. # For this motherboard, COMMENT OUT the above mtp008 section and # UNCOMMENT the following two sections. # #chip "mtp008-i2c-*-2c" # label in0 "VCore1" # set in0_min 1.60 # set in0_max 1.80 # label in1 "+3.3V" # label in2 "+12V" # label in3 "Vcore2" # set in3_min 1.60 # set in3_max 1.80 # ignore in4 # label in5 "-12V" # label in6 "Vtt" # label fan1 "CPU1 Fan" # label fan2 "CPU2 Fan" # label fan3 "fan3" # label temp1 "CPU1 Temp" # label temp2 "CPU2 Temp" # ignore temp3 # compute in2 @ * 38 / 10, @ * 10 / 38 # compute in5 (@ * 36 - 118.61) / 7, (118.61 + 7 * @) / 36 # #chip "mtp008-i2c-*-2e" # ignore in0 # label in1 "+3.3V" # ignore in2 # label in3 "+5V" # set in3_min 4.50 # set in3_max 5.50 # ignore in4 # label in5 "+3.3V" # ignore in6 # label fan1 "fan4" # label fan2 "fan5" # label fan3 "fan6" # ignore temp1 # label temp2 "MB Temp" # set temp2_over 52 # set temp2_hyst 47 # ignore temp3 chip "adm1025-*" "ne1619-*" # The ADM1025 has integrated scaling resistors, rather # than external resistors common to most sensor devices. # These apply to the 6 voltage inputs in0-in5 (+2.5V, VCore, # +3.3V, +5V, +12V, VCC). As the scaling is fixed inside # the chip for these inputs, it is fairly certain that the # motherboard connections match these labels, and that the # driver computations are correct. Therefore they do not need to # be overridden here. label in0 "+2.5V" label in1 "VCore" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "VCC" # Adjust this if your vid is wrong; see doc/vid # set vrm 9.0 # Tolerate a 5% deviance for CPU power-supply # set in1_min vid * 0.95 # set in1_max vid * 1.05 # Tolerate a 10% deviance for other voltages # set in0_min 2.5 * 0.90 # set in0_max 2.5 * 1.10 # set in2_min 3.3 * 0.90 # set in2_max 3.3 * 1.10 # set in3_min 5.0 * 0.90 # set in3_max 5.0 * 1.10 # set in4_min 12 * 0.90 # set in4_max 12 * 1.10 # set in5_min 3.3 * 0.90 # set in5_max 3.3 * 1.10 # Depending on how your chipset is hardwired, you may or may not have # +12V readings (will show as 0.0V if you don't have it). # ignore in4 # VCC is the power-supply voltage of the ADM1025 chipset, generally # redundant with +3.3V so you may want to hide it. # ignore in5 # Temperatures label temp1 "CPU Temp" label temp2 "M/B Temp" # set temp1_low 10 # set temp1_high 60 # set temp2_low 10 # set temp2_high 45 chip "lm87-*" # # The LM87 has integrated scaling resistors, rather # than external resistors common to most sensor devices. # These apply to the first 6 voltage inputs in0-in5 # (+2.5, Vccp1, +3.3, +5, 12, +Vccp2). As the scaling is fixed inside # the chip for these inputs, it is fairly certain that the # motherboard connections match these labels, and that the # driver computations are correct. Therefore they do not need to # be overridden here. # # Note: AIN1 (-12?), AIN2 (-5?) and temp3 require changing # #defines in the driver and recompiling!!! # This does not apply to the Linux 2.6 driver. # # This chip has non-standard entries in lib/chips.c so # the feature names are quite different from other chips. # For this chip, libsensors anticipates the correct labeling. # This is great if it's correct but makes it a little more # difficult if you want to change it. # # This may not have been a good idea, so it may be changed in the future. # Here is an entry with everything commented out so you can # uncomment the appropriate line if you want to change it. # # Warning - feature names starting with a number must be enclosed # with double quotes. label "2.5V" "+2.5V" label Vccp1 "VCore" label "3.3V" "+3.3V" label "5V" "+5V" label "12V" "+12V" # label Vccp2 "VCore2" label fan1 "CPU Fan" # label fan2 "Case Fan" label temp1 "M/B Temp" label CPU_Temp "CPU Temp" # label temp3 "AUX Temp" # set Vccp1_min vid * 0.95 # set Vccp1_max vid * 1.05 # set "3.3V_min" 3.3 * 0.92 # set "3.3V_max" 3.3 * 1.08 # set "5V_min" 5 * 0.92 # set "5V_max" 5 * 1.08 # set "12V_min" 12 * 0.90 # set "12V_max" 12 * 1.10 # These ones are mutually exclusive with temp3. If you have temp3, # comment out these lines as they will trigger errors on "sensors -s". # set "2.5V_min" 2.5 * 0.92 # set "2.5V_max" 2.5 * 1.08 # set Vccp2_min vid * 0.95 # set Vccp2_max vid * 1.05 # Increase fan clock dividers if your fans read 0 RPM while you know # they are connected and running. # set fan1_div 4 # set fan2_div 4 # set fan1_min 3000 # set fan2_min 3000 # set temp1_min 5 # set temp1_max 65 # set temp2_min 5 # set temp2_max 70 # Uncomment if you actually have temp3 (which means you don't have 2.5V # nor Vccp2, as they are mutually exclusive). # set temp3_min 5 # set temp3_max 70 # LM87 AIN1 and AIN2 Section # As described above, the driver must be recompiled to use either or # both of these. -12 and -5 may be reversed on your board, this is # just a guess, the datasheet gives no guidance. # Note that the Linux 2.6 driver needs no recompilation, it'll read the # configuration from the chip. # label AIN1 "-12V" # label AIN2 "-5V" # set AIN1_min -12 * 0.95 # set AIN2_min -5 * 0.95 # set AIN1_max -12 * 1.05 # set AIN2_max -5 * 1.05 # compute AIN1 (7.50 * @) - 21.45 , (@ + 21.45) / 7.50 # compute AIN2 (4.05 * @) - 10.07 , (@ + 10.07) / 4.05 chip "adm9240-*" "ds1780-*" "lm81-*" # # These chips have non-standard entries in lib/chips.c so # the feature names are quite different from other chips. # For these chips, libsensors anticipates the correct labeling. # This is great if it's correct but makes it a little more # difficult if you want to change it. # # This may not have been a good idea, so it may be changed in the future. # Here is an entry with everything commented out so you can # uncomment the appropriate line if you want to change it. # # Warning - feature names starting with a number must be enclosed # with double quotes. # # label "2.5V" "xxx" # label Vccp1 "xxx" # label "3.3V" "xxx" # label "5V" "xxx" # label "12V" "xxx" # label Vccp2 "xxx" # label fan1 "xxx" # label fan2 "xxx" # label temp "xxx" # # set Vccp1_min xxx # set "2.5V_min" xxx # set "3.3V_min" xxx # set "5V_min" xxx # set "12V_min" xxx # set Vccp2_min xxx # # set Vccp1_max xxx # set "2.5V_max" xxx # set "3.3V_max" xxx # set "5V_max" xxx # set "12V_max" xxx # set Vccp2_max xxx # # set fan1_div xxx Note: do not uncomment with kernel 2.6 driver # set fan2_div xxx Note: do not uncomment with kernel 2.6 driver # set fan1_min xxx # set fan2_min xxx # set temp1_hyst xxx # set temp1_over xxx # compute "2.5V" xxx # compute Vccp1 xxx # compute "3.3V" xxx # compute "5V" xxx # compute "12V" xxx # compute Vccp2 xxx # compute temp xxx chip "adm1024-*" # # These settings work for me, adjust for your system # label fan1 "CPU1 fan" label fan2 "CPU2 fan" label temp "SYS Temp" label temp1 "CPU2 Temp" label temp2 "CPU1 Temp" ignore "2.5V" # This register is also used for temp2 ignore "Vccp1" ignore "Vccp2" chip "it87-*" "it8712-*" # The values below have been tested on Asus CUSI, CUM motherboards. # Voltage monitors as advised in the It8705 data sheet label in0 "VCore 1" label in1 "VCore 2" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "-12V" label in6 "-5V" label in7 "Stdby" label in8 "VBat" # vid is not monitored by IT8705F # comment out if you have IT8712 ignore vid # Incubus Saturnus reports that the IT87 chip on Asus A7V8X-X seems # to report the VCORE voltage approximately 0.05V higher than the board's # BIOS does. Although it doesn't make much sense physically, uncommenting # the next line should bring the readings in line with the BIOS' ones in # this case. # compute in0 -0.05+@ , @+0.05 # If 3.3V reads around 1.65V, uncomment the following line: # compute in2 2*@ , @/2 compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) # A number of Gigabyte boards (GA-8IPE1000Pro, GA-8KNXP, GA-7N400-L) use # a different resistor combination for +5V: # compute in3 ((10/10)+1)*@ , @/((10/10)+1) compute in4 ((30/10) +1)*@ , @/((30/10) +1) # For this family of chips the negative voltage equation is different from # the lm78. The chip uses two external resistor for scaling but one is # tied to a positive reference voltage. See ITE8705/12 datasheet (SIS950 # data sheet is wrong) # Vs = (1 + Rin/Rf) * Vin - (Rin/Rf) * Vref. # Vref = 4.096 volts, Vin is voltage measured, Vs is actual voltage. # The next two are negative voltages (-12 and -5). # The following formulas must be used. Unfortunately the datasheet # does not give recommendations for Rin, Rf, but we can back into # them based on a nominal +2V input to the chip, together with a 4.096V Vref. # Formula: # actual V = (Vmeasured * (1 + Rin/Rf)) - (Vref * (Rin/Rf)) # For -12V input use Rin/Rf = 6.68 # For -5V input use Rin/Rf = 3.33 # Then you can convert the forumula to a standard form like: compute in5 (7.67 * @) - 27.36 , (@ + 27.36) / 7.67 compute in6 (4.33 * @) - 13.64 , (@ + 13.64) / 4.33 # # this much simpler version is reported to work for a # Elite Group K7S5A board # # compute in5 -(36/10)*@, -@/(36/10) # compute in6 -(56/10)*@, -@/(56/10) # compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1) # set in0_min 1.5 * 0.95 # set in0_max 1.5 * 1.05 # set in1_min 2.4 # set in1_max 2.6 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.95 # set in4_max 12 * 1.05 # set in5_max -12 * 0.95 # set in5_min -12 * 1.05 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 #the chip does not support in8 min/max # Temperature # # Important - if your temperature readings are completely whacky # you probably need to change the sensor type. # Adujst and uncomment the appropriate lines below. # The old method (modprobe it87 temp_type=0xXX) is no longer supported. # # 2 = thermistor; 3 = thermal diode; 0 = unused # set sensor1 3 # set sensor2 3 # set sensor3 3 # If a given sensor isn't used, you will probably want to ignore it # (see ignore statement right below). label temp1 "M/B Temp" # set temp1_over 40 # set temp1_low 15 label temp2 "CPU Temp" # set temp2_over 45 # set temp2_low 15 # ignore temp3 label temp3 "Temp3" # set temp3_over 45 # set temp3_low 15 # The A7V8X-X has temperatures inverted, and needs a conversion for # CPU temp. Thanks to Preben Randhol for the formula. # label temp1 "CPU Temp" # label temp2 "M/B Temp" # compute temp1 (-15.096+1.4893*@), (@+15.096)/1.4893 # The A7V600 also has temperatures inverted, and needs a different # conversion for CPU temp. Thanks to Dariusz Jaszkowski for the formula. # label temp1 "CPU Temp" # label temp2 "M/B Temp" # compute temp1 (@+128)/3, (3*@-128) # Fans # set fan1_min 0 # set fan2_min 3000 # ignore fan3 # set fan3_min 3000 # The following is for the Inside Technologies 786LCD which uses either a # IT8705F or a SIS950 for monitoring with the SIS630. # # delete or comment out above it87 section and uncomment the following. #chip "it87-*" # label in0 "VCore 1" # label in1 "VCore 2" # label in2 "+3.3V" # label in3 "+5V" # label in4 "+12V" # label in5 "3.3 Stdby" # label in6 "-12V" # label in7 "Stdby" # label in8 "VBat" # in0 will depend on your processor VID value, set to voltage specified in # bios setup screen # set in0_min 1.7 * 0.95 # set in0_max 1.7 * 1.05 # set in1_min 2.4 # set in1_max 2.6 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # +- 12V are very poor tolerance on this board. Verified with voltmeter # set in4_min 12 * 0.90 # set in4_max 12 * 1.10 # set in5_min 3.3 * 0.95 # set in5_max 3.3 * 1.05 # set in6_max -12 * 0.90 # set in6_min -12 * 1.10 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 # vid not monitored by IT8705F # ignore vid # compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) # compute in4 ((30/10) +1)*@ , @/((30/10) +1) # compute in6 (1+232/56)*@ - 4.096*232/56, (@ + 4.096*232/56)/(1+232/56) # compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1) # Temperature # label temp1 "CPU Temp" # ignore temp2 # ignore temp3 # Fans # set fan1_min 3000 # ignore fan2 # ignore fan3 chip "it8716-*" # Voltages label in0 "VCore" label in1 "VDDR" label in2 "+3.3V" # VCC3 label in3 "+5V" # VCC label in4 "+12V" # label in5 "-12V" # label in6 "-5V" label in7 "5VSB" # VCCH label in8 "VBat" compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((30/10)+1)*@ , @/((30/10)+1) # compute in5 (1+232/56)*@ - 4.096*232/56 , (@ + 4.096*232/56)/(1+232/56) # compute in6 (1+120/56)*@ - 4.096*120/56 , (@ + 4.096*120/56)/(1+120/56) compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1) # If vid (nominal CPU voltage) isn't correct, hardcode the correct value # instead. # set in0_min vid * 0.95 # set in0_max vid * 1.05 # set in1_min 1.8 * 0.95 # set in1_max 1.8 * 1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5 * 0.95 # set in3_max 5 * 1.05 # set in4_min 12 * 0.95 # set in4_max 12 * 1.05 # set in5_max -12 * 0.95 # set in5_min -12 * 1.05 # set in6_max -5 * 0.95 # set in6_min -5 * 1.05 # set in7_min 5 * 0.95 # set in7_max 5 * 1.05 # The chip does not support in8 min/max # Temperatures # If you are lucky, the BIOS has set the proper sensor types for you. # If your temperature readings are completely whacky you probably # need to change the sensor types. Adujst and uncomment the # appropriate lines below. # # 2 = thermistor; 3 = thermal diode; 0 = unused # set sensor1 3 # set sensor2 3 # set sensor3 3 # If a given sensor isn't used, you will probably want to ignore it # as well (see ignore statement right below). # The CPU sensor can be any of temp1, temp2 or temp3 - it's motherboard # dependent. Same for the motherboard temperature. # label temp1 "CPU Temp" # label temp2 "M/B Temp" # ignore temp3 # set temp1_over 60 # set temp1_low 10 # set temp2_over 50 # set temp2_low 10 # Fans # The CPU fan can be any of fan1, fan2 or fan3 - it's motherboard # dependent. Same for the case fan. # label fan1 "CPU Fan" # label fan2 "Case Fan" # ignore fan3 # set fan1_min 2000 # set fan2_min 2000 chip "fscpos-*" # Fujitsu-Siemens Poseidon chip # Temperature label temp1 "Temp1/CPU" label temp2 "Temp2/MB" label temp3 "Temp3/AUX" # Fans label fan1 "Fan1" label fan2 "Fan2" label fan3 "Fan3" # Voltage label volt12 "+12V" label volt5 "+5V" label voltbatt "Battery" chip "fscscy-*" # Fujitsu-Siemens Scylla chip # Temperature label temp1 "Temp1/CPU0" label temp2 "Temp2/CPU1" label temp3 "Temp3/MB" label temp4 "Temp4/AUX" # Fans label fan1 "Fan1/CPU0" label fan2 "Fan2/CPU0" label fan3 "Fan3" label fan4 "Fan4" label fan5 "Fan5" label fan6 "Fan6" # Voltage label volt12 "+12V" label volt5 "+5V" label voltbatt "+3.3V" chip "fscher-*" # Fujitsu-Siemens Hermes chip # Temperature label temp1 "Temp1/CPU" label temp2 "Temp2/MB" label temp3 "Temp3/AUX" # Fans label fan1 "Fan1/PS" label fan2 "Fan2/CPU" label fan3 "Fan3/AUX" # Voltage label in0 "+12V" label in1 "+5V" label in2 "Battery" # Note: comment the compute lines below when using the newer unified fschmd # driver, as that driver does the scaling in the driver # Compute Voltages using mainboard dependant MRO-values # (see doc/chips/fscher) # M R O O M R compute in0 (@ * (49 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (49 * 33) compute in1 (@ * (20 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (20 * 33) compute in2 (@ * (10 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (10 * 33) # Read documentation before enabling pwm settings (see doc/chips/fscher) # WARNING: IMPROPER VALUES MAY DAMAGE YOUR SYSTEM DUE TO OVERHEATING! # Note these set statements will not work with the newer unified fschmd driver # The functionality is still available using standard sysfs attributes for # pwm control: pwm#_auto_point1_pwm (which are not accessible through sensors) # Allow fans to turn off # set pwm1 0 # set pwm2 0 # set pwm3 0 # Min cooling # set pwm1 2 # set pwm2 1 # set pwm3 1 # Max cooling # set pwm1 255 # set pwm2 255 # set pwm3 255 chip "pcf8591-*" # # values for the Philips PCF8591 chip # # Analog inputs ignore ain_conf # Since Linux 2.6, input configuration is set as module parameter, # so the line below is for older kernels only. # set ain_conf 0 # You may discard ch2 and ch3 if you don't use them (depends on the input # configuration) # ignore ch2 # ignore ch3 label ch0 "Chan. 0" label ch1 "Chan. 1" label ch2 "Chan. 2" label ch3 "Chan. 3" # The driver assumes Vref = 2.56V and Agnd = 0V. If it doesn't match # your hardware, you have to use compute lines. The example below is # correct for Vref = 5.0V and Agnd = 0V. # compute ch0 (@ * 500 / 256), (@ * 256 / 500) # compute ch1 (@ * 500 / 256), (@ * 256 / 500) # compute ch2 (@ * 500 / 256), (@ * 256 / 500) # compute ch3 (@ * 500 / 256), (@ * 256 / 500) # Analog output ignore aout_enable # set aout_enable 1 label aout "Output" # set aout 0 chip "adm1021-*" "adm1023-*" "max1617-*" "max1617a-*" "thmc10-*" "lm84-*" "gl523sm-*" "mc1066-*" label temp "Board Temp" label remote_temp "CPU Temp" # set temp_low 40 # set temp_over 70 # set remote_temp_low 40 # set remote_temp_over 70 chip "lm83-*" label temp1 "M/B Temp" label temp2 "D1 Temp" label temp3 "CPU Temp" label temp4 "D3 Temp" # ignore D1 and/or D3 readings if not used # ignore temp2 # ignore temp4 # change high limits to fit your needs # set temp1_high 55 # set temp2_high 60 # set temp3_high 65 # set temp4_high 60 # change critical limit to fit your needs # only one limit for all four temperatures # should be higher than each of the high limits above # set tcrit 85 chip "max1619-*" label temp1 "M/B Temp" label temp2 "CPU Temp" # change high and low limits to fit your needs # set temp2_min 10 # set temp2_max 100 # change critical limit and hysteresis to fit your needs # set temp2_crit 50 # set temp2_hyst 40 chip "lm90-*" "adm1032-*" "lm86-*" "max6657-*" "adt7461-*" "max6680-*" label temp1 "M/B Temp" label temp2 "CPU Temp" label tcrit1 "M/B Crit" label tcrit2 "CPU Crit" # change high and low limits to fit your needs # set temp1_low 10 # set temp1_high 55 # set temp2_low 10 # set temp2_high 66 # change critical limits to fit your needs # should be higher than the corresponding high limit above # set tcrit1 75 # set tcrit2 85 # change the hysteresis values (to critical limits) to fit your needs # note #1: hyst2 will be automatically set with the same delta # note #2: the internal register, which stores a single, relative value # for both channels, cannot hold values greater than 31, so the delta # between critical temperatures and respective absolute hysteresis can # never exceed this value # set hyst1 70 chip "lm99-*" label temp1 "G/C Temp" label temp2 "GPU Temp" label tcrit1 "G/C Crit" label tcrit2 "GPU Crit" # note #1: only the LM99 needs this; for a LM89, comment the compute line # out # note #2: there is no way for us to differentiate between a LM89 and a # LM99; you have to know what you have; LM99 are frequently found on # graphics cards, most notably nVidia ones compute temp2 @+16, @-16 # change high and low limits to fit your needs # set temp1_low 10 # set temp1_high 90 # set temp2_low 10 # set temp2_high 100 # change critical limits to fit your needs # should be higher than the corresponding high limit above # set tcrit1 100 # set tcrit2 110 # change the hysteresis values (to critical limits) to fit your needs # note #1: hyst2 will be automatically set with the same delta # note #2: the internal register, which stores a single, relative value # for both channels, cannot hold values greater than 31, so the delta # between critical temperatures and respective absolute hysteresis can # never exceed this value # set hyst1 105 chip "lm63-*" label temp1 "M/B Temp" label temp2 "CPU Temp" label temp2_crit "CPU Crit" label fan1 "CPU Fan" # Change limits to fit your needs. Note that temp2_crit is read-only. # set temp1_high 50 # set temp2_low 10 # set temp2_high 70 # set temp2_crit_hyst 75 # set fan1_min 2000 chip "vt1211-*" # 1 for temp, 0 for volt. # Sensor Voltage Mode Temp Mode config bit # -------- ------------ --------- -------------- # Reading 1 temp1 # Reading 3 temp2 # UCH1/Reading2 in0 temp3 0x04 (4) # UCH2 in1 temp4 0x08 (8) # UCH3 in2 temp5 0x10 (16) # UCH4 in3 temp6 0x20 (32) # UCH5 in4 temp7 0x40 (64) # 3.3V in5 # Set uch1-2 to temp mode, uch3-5 to voltage mode. This works only # for the 2.4 driver. For the 2.6 driver use the uch_config module parameter. # If the value doesn't match the hardware wiring, you'll get weird readings! # set config 12 # The 2.6 driver will automatically ignore the inputs which are not # configured, but the 2.4 driver will not so you'll need to add ignore # statements depending on the config value above. # ignore in0 # ignore in1 # ignore temp3 # ignore temp4 ignore temp5 ignore temp6 ignore temp7 label in0 "+3.3V" label in1 "+2.5V" label in2 "VCore" label in3 "+5V" label in4 "+12V" label in5 "+3.3V" label temp1 "CPU Temp" label temp2 "Int Temp" label fan1 "Case Fan" label fan2 "CPU Fan" # All voltage calculations have the form # compute inX @ * (1 + R1 / R2), @ / (1 + R1 / R2) # # The following are the resistor values as recommended by VIA # Voltage R1 R2 # ------- ---- ---- # VCore - - (no scaling) # 3.3 6.8k 10k # 2.5 2k 10k # 5.0 14k 10k # 12.0 47k 10k # # The VT1211 internal 3.3V (in5) is scaled by the driver and doesn't # need to be adjusted here. VCore doesn't need scaling at all. compute in0 @ * (1 + 6.8 / 10), @ / (1 + 6.8 / 10) compute in1 @ * (1 + 2 / 10), @ / (1 + 2 / 10) compute in3 @ * (1 + 14 / 10), @ / (1 + 14 / 10) compute in4 @ * (1 + 47 / 10), @ / (1 + 47 / 10) # Adjust this if your vid is wrong (for 2.4 only); see doc/vid # set vrm 9.1 # set in0_min 3.3 * 0.95 # set in0_max 3.3 * 1.05 # set in1_min 2.5 * 0.95 # set in1_max 2.5 * 1.05 # If your vid is wrong, hardcode the CPU voltage (e.g. 1.4) # set in2_min vid * 0.97 # set in2_max vid * 1.03 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12.0 * 0.90 # set in4_max 12.0 * 1.10 set in5_min 3.3 * 0.95 set in5_max 3.3 * 1.05 # The temperature calculations are of the form # compute tempX (@ - Offset) / Gain, (@ * Gain) + Offset # # The following are the gain and offset values as recommended by VIA # Diode Type Gain Offset # ---------- ---- ------ # Intel CPU 0.9528 88.638 # 0.9686 65.000 *) # VIA C3 Ezra 0.9528 83.869 # VIA C3 Ezra-T 0.9528 73.869 # # *) These are the values from the previous sensors.conf. I don't know # where they came from or how they got derived. # # The VT1211 internal temperature (temp2) is scaled by the driver # and doesn't need to be adjusted here. compute temp1 (@ - 73.869) / 0.9528, (@ * 0.9528) + 73.869 # The thermistor calculations are of the form # compute tempX 1 / (1 / 298.15 - (` Vmax / @ - 1)) / B) - 273.15, \ # Vmax / (1 + (^ (B / 298.15 - B / (273.15 + @)))) # # B is the thermistor beta value, Vmax is the reference voltage, '^' is the # exp() operator and '`' is the ln() operator. # Given B = 3435 and Vmax = 2.2V and assuming that the thermistor forms a # resistor divider with a resistor equal to the thermistor's nominal value at # 25 degrees C, the following compute lines can be used: compute temp3 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) compute temp4 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) compute temp5 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) compute temp6 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) compute temp7 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) # set temp1_hyst 80 # set temp1_over 85 # set temp2_hyst 60 # set temp2_over 65 # set temp3_hyst 60 # set temp3_over 65 # set temp4_hyst 40 # set temp4_over 45 # set fan1_min 3000 # set fan2_min 3000 chip "vt8231-*" # # 1 for temp, 0 for volt. # Sensor Voltage Mode Temp Mode config bit # -------- ------------ --------- -------------- # Reading 1 temp1 # UCH1 in0 temp2 0x04 (4) # UCH2 in1 temp3 0x08 (8) # UCH3 in2 temp4 0x10 (16) # UCH4 in3 temp5 0x20 (32) # UCH5 in4 temp6 0x40 (64) # 3.3V in5 # # Hardware default is UCH1 in temp mode, UCH2-5 in voltage mode # Note that the Linux 2.6 driver will not let you change the channel # configuration. In theory, the BIOS should have done it properly. # set config 4 # ignore in0 # ignore temp3 # ignore temp4 # ignore temp5 # ignore temp6 label in1 "+2.5V" label in2 "VCore" label in3 "+5V" label in4 "+12V" label in5 "+3.3V" label temp1 "CPU Temp" label temp2 "M/B Temp" # Here are the resistor values as recommended by VIA: # Voltage R1 R2 # VCore no scaling # 2.5 2k 10k # 3.5 (3.3V ext.) 6.8k 10k # 5.0 14k 10k # 12.0 47k 10k # compute in0 @ * (1 + 6.8 / 10), @ / (1 + 6.8 / 10) compute in1 @ * (1 + 2 / 10), @ / (1 + 2 / 10) compute in3 @ * (1 + 14 / 10), @ / (1 + 14 / 10) compute in4 @ * (1 + 47 / 10), @ / (1 + 47 / 10) # in5 is scaled internally so scaling is done by the driver. # set in0_min 2.5 * 0.95 # set in0_max 2.5 * 1.05 # set in1_min 2.5 * 0.95 # set in1_max 2.5 * 1.05 # Replace "2.0" with your nominal CPU voltage for in2. # set in2_min 2.0 * 0.95 # set in2_max 2.0 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12.0 * 0.95 # set in4_max 12.0 * 1.05 # set in5_min 3.3 * 0.95 # set in5_max 3.3 * 1.05 # For Intel CPU: compute temp1 (@ - 65) / 0.9686, (@ * 0.9686) + 65 # For VIA EPIA CPU (provided by Roger Lucas): # compute temp1 (@ - 45) / 0.7809, (@ * 0.7809) + 45 # Thermistor calculations # 3435 is the thermistor beta, 2.2 is the reference voltage. # '^' is the e**x operator; '`' is the ln(x) operator # (valid in library version 1.4.0 / lm_sensors 2.7.1 or higher) # This assumes that the thermistor forms a resistor divider with a resistor # equal to its nominal value at 25 degrees C. compute temp2 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) compute temp3 1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \ 2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @)))) # set temp1_hyst 60 # set temp1_over 65 # set temp2_hyst 40 # set temp2_over 45 # set fan1_min 3000 # set fan2_min 3000 chip "bmc-*" # # You should not need compute lines here, the driver will # do all the conversions. # For label lines, copy from syslog/dmesg when the bmcsensors # module is inserted. # # for example: # label temp1 "Ambient Temp" chip "smsc47m1-*" # SMSC LPC47M10x, LPC47M13x, LPC47M14x and LPC47B27x chips # We don't set the fan mins by default anymore because they may not exist # when using the Linux 2.6 driver (since we respect the original chip # configuration). # set fan1_min 3000 # set fan2_min 3000 chip "smsc47m192-*" # Temperature and voltage input from SMSC LPC47M192 and LPC47M997 chips # This example works on a Gigabyte K8U motherboard # Voltages are scaled internally, no computations needed label in0 "+2.5V" # set in0_min 2.5 * 0.95 # set in0_max 2.5 * 1.05 label in1 "VCore" # set in1_min vid * 0.95 # set in1_max vid * 1.05 label in2 "+3.3V" # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 label in3 "+5V" # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 label in4 "+12V" # set in4_min 12.0 * 0.95 # set in4_max 12.0 * 1.05 label in5 "VCC" # set in5_min 3.3 * 0.95 # set in5_max 3.3 * 1.05 label in6 "+1.5V" # set in6_min 1.5 * 0.95 # set in6_max 1.5 * 1.05 # ignore in6 label in7 "+1.8V" # set in7_min 1.8 * 0.95 # set in7_max 1.8 * 1.05 # Haven't yet heard from any board that has 1.8V connected, so # this might be more appropriate: # ignore in7 label temp1 "Chip Temp" # set temp1_min 0 # set temp1_max 60 label temp2 "CPU Temp" # set temp2_min 0 # set temp2_max 60 label temp3 "Sys Temp" # set temp3_min 0 # set temp3_max 60 # # This example was tested vs. Asus P4S333 # chip "asb100-*" # adjust this if your vid is wrong; see doc/vid #set vrm 9.0 label in0 "VCore 1" #set in0_min vid * 0.95 #set in0_max vid * 1.05 label in1 "VCore 2" ignore in1 #set in1_min vid * 0.95 #set in1_max vid * 1.05 label in2 "+3.3V" #set in2_min 3.3 * 0.95 #set in2_max 3.3 * 1.05 label in3 "+5V" compute in3 1.68 * @ , @ / 1.68 #set in3_min 5.0 * 0.95 #set in3_max 5.0 * 1.05 label in4 "+12V" compute in4 3.8 * @ , @ / 3.8 #set in4_min 12 * 0.90 #set in4_max 12 * 1.10 label in5 "-12V (reserved)" #ignore in5 compute in5 -@ * 3.97 , -@ / 3.97 #set in5_max -12 * 0.90 #set in5_min -12 * 1.10 label in6 "-5V (reserved)" #ignore in6 compute in6 -@ * 1.666 , -@ / 1.666 #set in6_max -5 * 0.95 #set in6_min -5 * 1.05 label temp1 "M/B Temp" #set temp1_over 45 #set temp1_hyst 40 label temp2 "CPU Temp (Intel)" #ignore temp2 #set temp2_over 60 #set temp2_hyst 50 # PWRTMP connector on P4S333, for external sensor label temp3 "Power Temp" #ignore temp3 #set temp3_over 45 #set temp3_hyst 40 # Used for Athlon diode, ignore for P4S333 label temp4 "CPU Temp (AMD)" #set temp4_over 60 #set temp4_hyst 50 #ignore temp4 label fan1 "CPU Fan" #set fan1_div 4 #set fan1_min 2000 label fan2 "Chassis Fan" #set fan2_div 2 #set fan2_min 4000 label fan3 "Power Fan" #set fan3_div 2 #set fan3_min 4000 # # Sample configuration for the Intel S845WD1-E # courtesy of Marcus Schopen # chip "lm85c-*" "adm1027-*" "adt7463-*" "lm85-*" "lm85b-*" # Voltage inputs # Depending on the hardware setup, the ADT7463 may not have in4. label in0 "V1.5" # AGP on Intel S845WD1-E label in1 "VCore" label in2 "V3.3" label in3 "V5" label in4 "V12" # Temperature inputs label temp1 "CPU Temp" label temp2 "Board Temp" label temp3 "Remote Temp" # Fan inputs label fan1 "CPU_Fan" # label fan2 "Fan2" # label fan3 "Fan3" # label fan4 "Fan4" # PWM Outputs label pwm1 "CPU_PWM" label pwm2 "Fan2_PWM" label pwm3 "Fan3_PWM" # Voltage scaling is done on-chip. No 'compute' directive # should be necessary. If in0 has external scaling set # it here. # compute in0 @ * 2.5, @ / 2.5 # Adjust fans speeds for actual pulses per rev # compute fan1 @ * 2, @ / 2 # 1 pulse per rev # set fan1_ppr 1 # ADM1027 or ADT7463 # compute fan2 @ / 2, @ * 2 # 4 pulse per rev # set fan2_ppr 4 # ADM1027 or ADT7463 # Ignore fans you (or your motherboard) don't have # ignore fan2 # ignore fan3 # ignore fan4 # Set VRM version # adjust this if your vid is wrong; see doc/vid # set vrm 9.1 # Pentium 4 # Set voltage limits # set in0_min 1.5 * 0.95 # set in0_max 1.5 * 1.05 # set in1_min vid * 0.95 # set in1_max vid * 1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12 * 0.95 # set in4_max 12 * 1.05 # Set Fan limits # set fan1_min 4000 # Set Temp Limits # set temp1_min 10 # set temp1_max 50 # set temp2_min 10 # set temp2_max 35 # set temp3_min 10 # set temp3_max 35 chip "pc87366-*" # Voltage inputs # Set VRM version (default 9.0) # set vrm 9.0 label in7 "Vsb" label in8 "Vdd" label in9 "Vbat" label in10 "AVdd" compute in7 @*2, @/2 compute in8 @*2, @/2 compute in10 @*2, @/2 # These are the operating conditions as recommended by National # Semiconductor set in7_min 3.0 set in7_max 3.6 set in8_min 3.0 set in8_max 3.6 # set in9_min 2.4 # set in9_max 3.6 set in10_min 3.0 set in10_max 3.6 # Temperature inputs label temp1 "CPU0 Temp" label temp1_crit "CPU0 Crit" label temp2 "CPU1 Temp" label temp2_crit "CPU1 Crit" label temp3 "S-IO Temp" label temp3_crit "S-IO Crit" # set temp1_min 0 # set temp1_max 70 # set temp1_crit 85 # set temp2_min 0 # set temp2_max 70 # set temp2_crit 85 # set temp3_min 0 # set temp3_max 70 # set temp3_crit 85 # Thermistors # On some systems, thermistors are used instead of thermal diodes. # Note that these are the same pins used differently, so you really # can't have them all on a given system. # ignore temp1 # ignore temp2 ignore temp4 ignore temp5 ignore temp6 # 3435 is the thermistor beta. # This assumes that the thermistor forms a resistor divider with a resistor # equal to its nominal value at 25 degres Celsius. If not, change the values. # We also assume that you have a working in10 (which is forcibly enabled by # default). If not, use 3.3 instead, but you lose accuracy. compute temp4 3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \ in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15)))) compute temp5 3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \ in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15)))) compute temp6 3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \ in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15)))) # set temp4_min 0 # set temp4_max 70 # set temp4_crit 85 # set temp5_min 0 # set temp5_max 70 # set temp5_crit 85 # set temp6_min 0 # set temp6_max 70 # set temp6_crit 85 # Fan inputs # Ignore fans you don't have # ignore fan2 # ignore fan3 # set fan1_min 2000 # set fan2_min 2000 # set fan3_min 2000 chip "adm1030-*" label temp1 "SYS Temp" label temp2 "CPU Temp" label temp1_crit "SYS Crit" label temp2_crit "CPU Crit" # set temp1_max 60 # set temp2_max 70 # set temp1_crit 85 # set temp2_crit 85 label fan1 "CPU Fan" # set fan1_min 2000 chip "adm1031-*" label temp1 "SYS Temp" label temp2 "CPU Temp" label temp3 "AUX Temp" label temp1_crit "SYS Crit" label temp2_crit "CPU Crit" label temp3_crit "AUX Crit" # set temp1_max 60 # set temp2_max 70 # set temp3_max 70 # set temp1_crit 85 # set temp2_crit 85 # set temp3_crit 85 label fan1 "CPU Fan" label fan2 "Case Fan" # set fan1_min 2000 # set fan2_min 2000 chip "w83l785ts-*" label temp1 "CPU Diode" chip "lm92-*" label temp "CPU Temp" # Change limits as you see fit # set temp_low 14 # set temp_high 60 # set temp_crit 72 # Hysteresis is computed from critical limit for Linux 2.6, # and from high limit for Linux 2.4. That might change in the future. # Whatever, the same relative hysteresis is used for all of low, high # and critical limits. # set temp_hyst 70 # Linux 2.6 # set temp_hyst 58 # Linux 2.4 # Winbond W83627EHF configuration originally contributed by Leon Moonen # This is for an Asus P5P800, voltages for A8V-E SE. chip "w83627ehf-*" "w83627dhg-*" label in0 "VCore" label in2 "AVCC" label in3 "3VCC" label in7 "VSB" label in8 "VBAT" # The W83627DHG has no in9, uncomment the following line # ignore in9 # +12V is in1 and +5V is in6 as recommended by datasheet compute in1 @*(1+(56/10)), @/(1+(56/10)) compute in6 @*(1+(22/10)), @/(1+(22/10)) # set in1_min 12.0*0.9 # set in1_max 12.0*1.1 # set in6_min 5.0*0.95 # set in6_max 5.0*1.05 # Set the 3.3V # set in2_min 3.3*0.95 # set in2_max 3.3*1.05 # set in3_min 3.3*0.95 # set in3_max 3.3*1.05 # set in7_min 3.3*0.95 # set in7_max 3.3*1.05 # set in8_min 3.3*0.95 # set in8_max 3.3*1.05 # Fans label fan1 "Case Fan" label fan2 "CPU Fan" label fan3 "Aux Fan" # ignore fan3 # ignore fan4 # set fan1_min 1200 # set fan2_min 1700 # Temperatures label temp1 "Sys Temp" label temp2 "CPU Temp" label temp3 "AUX Temp" # ignore temp3 # set temp1_over 45 # set temp1_hyst 40 # set temp2_over 45 # set temp2_hyst 40 # Fintek F71805F/FG configuration # This is the recommended wiring and resistor values from the F71805F/FG # datasheet. Your motherboard manufacturer may or may not have followed # these. chip "f71805f-*" # Voltages label in0 "+3.3V" label in1 "Vtt1.2V" label in2 "Vram" label in3 "Vchip" label in4 "+5V" label in5 "+12V" label in6 "Vcc1.5V" label in7 "Vcore" label in8 "5VSB" # in0 is scaled internally compute in2 @*(1+100/100), @/(1+100/100) compute in3 @*(1+100/47), @/(1+100/47) compute in4 @*(1+200/47), @/(1+200/47) compute in5 @*(1+200/20), @/(1+200/20) compute in8 @*(1+200/47), @/(1+200/47) # in0 is the chip's own VCC. set in0_min 3.0 set in0_max 3.6 #set in1_min 1.2 * 0.95 #set in1_max 1.2 * 1.05 #set in2_min 2.5 * 0.95 #set in2_max 2.6 * 1.05 #set in3_min 3.3 * 0.95 #set in3_max 3.3 * 1.05 #set in4_min 5.0 * 0.95 #set in4_max 5.0 * 1.05 #set in5_min 12.0 * 0.95 #set in5_max 12.0 * 1.05 #set in6_min 1.5 * 0.95 #set in6_max 1.5 * 1.05 # in7 nominal value depends on the CPU model #set in7_min 1.4 * 0.95 #set in7_max 1.4 * 1.05 #set in8_min 5.0 * 0.95 #set in8_max 5.0 * 1.05 # Fans label fan1 "CPU Fan" label fan2 "Sys Fan" label fan3 "Aux Fan" #set fan1_min 2100 #set fan2_min 1400 #set fan3_min 1400 # Temperatures label temp1 "CPU Temp" label temp2 "Sys Temp" label temp3 "Aux Temp" #set temp1_max 60 #set temp1_hyst 58 #set temp2_max 50 #set temp2_hyst 48 #set temp3_max 50 #set temp3_hyst 48 # Abit Uguru sensor part configuration. # The Abit Uguru is relativly straight forward to configure. # label statements: # The voltage (in) temp and fan sensors are usualy in the same order as listed # in the BIOS, but not always! # compute statements: # The temp and fan sensors don't need any compute statements. Most voltage # inputs are directly connected to the IC and thus don't need an compute line # because the 0-3494 mV voltage given by the kernel driver is correct. The sen- # sors for higher voltages however are connect through a divider and measure # ranges of: 0-4361mV, 0-6248mV or 0-14510mV. Thus the measured voltages must # be multiplied by resp. 1.248, 1.788 or 4.153. 3.3 volt sources use the 1.248 # mutiplier, 5 volt the 1.788 and 12 volt the 4.153. # set statements: # The Abit BIOS sets reasonable treshholds and allows changing them, thus # set statements may be ommited. The abituguru kernel driver does support # them if you want to add them. # # The configuration below is for the Kv8Pro and AV8 this is the default as this # driver is developed and tested on a Kv8Pro. # Configurations for many other Abit boards can be found at: # http://www.lm-sensors.org/trac/wiki/Configurations/Abit # If your motherboard isn't listed there and you create a configuration for it # please add it there. chip "abituguru-*" label in0 "CPU Core Voltage" label in1 "DDR Voltage" label in2 "DDR VTT Voltage" label in3 "NB Voltage" label in4 "SB Voltage" label in5 "HyperTransport Voltage" label in6 "AGP VDDQ Voltage" label in7 "ATX +5V" compute in7 @*1.788 , @/1.788 label in8 "ATX +3.3V" compute in8 @*1.248 , @/1.248 label in9 "Standby Voltage (+5V)" compute in9 @*1.788 , @/1.788 label in10 "3VDual Voltage" compute in10 @*1.248 , @/1.248 label temp1 "CPU Temperature" label temp2 "SYS Temperature" label temp3 "PWM Temperature" ignore temp4 ignore temp5 ignore temp6 ignore temp7 label fan1 "CPU FAN Speed" label fan2 "NB FAN Speed" label fan3 "SYS FAN Speed" label fan4 "AUX1 FAN Speed" label fan5 "AUX2 FAN Speed" ignore fan6 chip "k8temp-*" label temp1 "Core0 Temp" label temp2 "Core0 Temp" label temp3 "Core1 Temp" label temp4 "Core1 Temp" # # Sample configuration for the SMSC DME1737 and ASUS A8000 # chip "dme1737-*" # Voltage inputs label in0 "V5stby" label in1 "Vccp" label in2 "V3.3" label in3 "V5" label in4 "V12" label in5 "V3.3stby" label in6 "Vbat" # Temperature inputs label temp1 "RD1 Temp" label temp2 "Int Temp" label temp3 "CPU Temp" # Fan inputs label fan1 "CPU_Fan" label fan2 "Fan2" label fan3 "Fan3" label fan4 "Fan4" label fan5 "Fan5" label fan6 "Fan6" # PWM Outputs label pwm1 "CPU_PWM" label pwm2 "Fan2_PWM" label pwm3 "Fan3_PWM" label pwm5 "Fan5_PWM" label pwm6 "Fan6_PWM" # Set voltage limits # set in0_min 5.0 * 0.95 # set in0_max 5.0 * 1.05 # set in1_min 1.4 * 0.95 # set in1_max 1.4 * 1.05 # set in2_min 3.3 * 0.95 # set in2_max 3.3 * 1.05 # set in3_min 5.0 * 0.95 # set in3_max 5.0 * 1.05 # set in4_min 12.0 * 0.95 # set in4_max 12.0 * 1.05 # set in5_min 3.3 * 0.95 # set in5_max 3.3 * 1.05 # set in6_min 3.0 * 0.95 # set in6_max 3.0 * 1.05 # Set Temp Limits # set temp1_min 10 # set temp1_max 75 # set temp2_min 10 # set temp2_max 75 # set temp3_min 10 # set temp3_max 75 # Set Fan limits # set fan1_min 1000 # set fan2_min 1000 # set fan3_min 1000 # set fan4_min 1000 # set fan5_min 1000 # set fan6_min 1000 # # sample configuration for the Fintek f71882fg and f71883fg # # The configuration below is for the Epox EP-9U1697 GLI board, which has a # Fintek f71883fg relabeled as Epox ep1308, this is the default config as this # driver is developed and tested on an Epox EP-9U1697 GLI board. # # Premade configurations for other boards can be found at: # http://www.lm-sensors.org/trac/wiki/Configurations/ # If your motherboard isn't listed there and you create a configuration for it # please add it there. # chip "f71882fg-*" # Temperature label temp1 "CPU" label temp2 "System" ignore temp3 # Fans label fan1 "CPU" label fan2 "System" label fan3 "Power" label fan4 "Aux" # Voltage label in0 "3.3V" label in1 "Vcore" label in2 "Vdimm" label in3 "Vchip" label in4 "+5V" label in5 "12V" label in6 "5VSB" label in7 "3VSB" label in8 "Battery" # never change the in0, in7 and in8 compute, these are hardwired in the chip! compute in0 (@ * 2), (@ / 2) compute in2 (@ * 2), (@ / 2) compute in3 (@ * 2), (@ / 2) compute in4 (@ * 5.25), (@ / 5.25) compute in5 (@ * 12.83), (@ / 12.83) compute in6 (@ * 5.25), (@ / 5.25) compute in7 (@ * 2), (@ / 2) compute in8 (@ * 2), (@ / 2) chip "adm1022-*" "thmc50-*" label temp "M/B Temp" # Single CPU setup label remote_temp "CPU Temp" # Dual CPU setup (ADM1022 only) #label remote_temp "CPU0 Temp" #label remote_temp2 "CPU1 Temp" python-augeas-1.2.0/test/testroot/etc/smartd.conf000066400000000000000000000150421451643112200220550ustar00rootroot00000000000000# *SMARTD*AUTOGENERATED* /etc/smartd.conf # The line above is relevant only if you have smartmontools-config installed: # Remove the line if you have edited the file and you do not want # it to be overwritten on the next smartd startup. # Sample configuration file for smartd. See man smartd.conf. # Home page is: http://smartmontools.sourceforge.net # $Id: smartd.conf,v 1.45 2006/11/12 23:39:04 dpgilbert Exp $ # smartd will re-read the configuration file if it receives a HUP # signal # The file gives a list of devices to monitor using smartd, with one # device per line. Text after a hash (#) is ignored, and you may use # spaces and tabs for white space. You may use '\' to continue lines. # You can usually identify which hard disks are on your system by # looking in /proc/ide and in /proc/scsi. # The word DEVICESCAN will cause any remaining lines in this # configuration file to be ignored: it tells smartd to scan for all # ATA and SCSI devices. DEVICESCAN may be followed by any of the # Directives listed below, which will be applied to all devices that # are found. Most users should comment out DEVICESCAN and explicitly # list the devices that they wish to monitor. DEVICESCAN # Alternative setting to ignore temperature and power-on hours reports # in syslog. #DEVICESCAN -I 194 -I 231 -I 9 # Alternative setting to report more useful raw temperature in syslog. #DEVICESCAN -R 194 -R 231 -I 9 # Alternative setting to report raw temperature changes >= 5 Celsius # and min/max temperatures. #DEVICESCAN -I 194 -I 231 -I 9 -W 5 # First (primary) ATA/IDE hard disk. Monitor all attributes, enable # automatic online data collection, automatic Attribute autosave, and # start a short self-test every day between 2-3am, and a long self test # Saturdays between 3-4am. #/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) # Monitor SMART status, ATA Error Log, Self-test log, and track # changes in all attributes except for attribute 194 #/dev/hdb -H -l error -l selftest -t -I 194 # Monitor all attributes except normalized Temperature (usually 194), # but track Temperature changes >= 4 Celsius, report Temperatures # >= 45 Celsius and changes in Raw value of Reallocated_Sector_Ct (5). # Send mail on SMART failures or when Temperature is >= 55 Celsius. #/dev/hdc -a -I 194 -W 4,45,55 -R 5 -m admin@example.com # An ATA disk may appear as a SCSI device to the OS. If a SCSI to # ATA Translation (SAT) layer is between the OS and the device then # this can be flagged with the '-d sat' option. This situation may # become common with SATA disks in SAS and FC environments. # /dev/sda -a -d sat # A very silent check. Only report SMART health status if it fails # But send an email in this case #/dev/hdc -H -C 0 -U 0 -m admin@example.com # First two SCSI disks. This will monitor everything that smartd can # monitor. Start extended self-tests Wednesdays between 6-7pm and # Sundays between 1-2 am #/dev/sda -d scsi -s L/../../3/18 #/dev/sdb -d scsi -s L/../../7/01 # Monitor 4 ATA disks connected to a 3ware 6/7/8000 controller which uses # the 3w-xxxx driver. Start long self-tests Sundays between 1-2, 2-3, 3-4, # and 4-5 am. # NOTE: starting with the Linux 2.6 kernel series, the /dev/sdX interface # is DEPRECATED. Use the /dev/tweN character device interface instead. # For example /dev/twe0, /dev/twe1, and so on. #/dev/sdc -d 3ware,0 -a -s L/../../7/01 #/dev/sdc -d 3ware,1 -a -s L/../../7/02 #/dev/sdc -d 3ware,2 -a -s L/../../7/03 #/dev/sdc -d 3ware,3 -a -s L/../../7/04 # Monitor 2 ATA disks connected to a 3ware 9000 controller which uses # the 3w-9xxx driver (Linux, FreeBSD). Start long self-tests Tuesdays # between 1-2 and 3-4 am. #/dev/twa0 -d 3ware,0 -a -s L/../../2/01 #/dev/twa0 -d 3ware,1 -a -s L/../../2/03 # Same as above for Windows. Option '-d 3ware,N' is not necessary, # disk (port) number is specified in device name. # NOTE: On Windows, DEVICESCAN works also for 3ware controllers. #/dev/hdc,0 -a -s L/../../2/01 #/dev/hdc,1 -a -s L/../../2/03 # Monitor 3 ATA disks directly connected to a HighPoint RocketRAID. Start long # self-tests Sundays between 1-2, 2-3, and 3-4 am. #/dev/sdd -d hpt,1/1 -a -s L/../../7/01 #/dev/sdd -d hpt,1/2 -a -s L/../../7/02 #/dev/sdd -d hpt,1/3 -a -s L/../../7/03 # Monitor 2 ATA disks connected to the same PMPort which connected to the # HighPoint RocketRAID. Start long self-tests Tuesdays between 1-2 and 3-4 am #/dev/sdd -d hpt,1/4/1 -a -s L/../../2/01 #/dev/sdd -d hpt,1/4/2 -a -s L/../../2/03 # HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE. # PLEASE SEE THE smartd.conf MAN PAGE FOR DETAILS # # -d TYPE Set the device type: ata, scsi, marvell, removable, 3ware,N, hpt,L/M/N # -T TYPE set the tolerance to one of: normal, permissive # -o VAL Enable/disable automatic offline tests (on/off) # -S VAL Enable/disable attribute autosave (on/off) # -n MODE No check. MODE is one of: never, sleep, standby, idle # -H Monitor SMART Health Status, report if failed # -l TYPE Monitor SMART log. Type is one of: error, selftest # -f Monitor for failure of any 'Usage' Attributes # -m ADD Send warning email to ADD for -H, -l error, -l selftest, and -f # -M TYPE Modify email warning behavior (see man page) # -s REGE Start self-test when type/date matches regular expression (see man page) # -p Report changes in 'Prefailure' Normalized Attributes # -u Report changes in 'Usage' Normalized Attributes # -t Equivalent to -p and -u Directives # -r ID Also report Raw values of Attribute ID with -p, -u or -t # -R ID Track changes in Attribute ID Raw value with -p, -u or -t # -i ID Ignore Attribute ID for -f Directive # -I ID Ignore Attribute ID for -p, -u or -t Directive # -C ID Report if Current Pending Sector count non-zero # -U ID Report if Offline Uncorrectable count non-zero # -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit # -v N,ST Modifies labeling of Attribute N (see man page) # -a Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198 # -F TYPE Use firmware bug workaround. Type is one of: none, samsung # -P TYPE Drive-specific presets: use, ignore, show, showall # # Comment: text after a hash sign is ignored # \ Line continuation character # Attribute ID is a decimal integer 1 <= ID <= 255 # except for -C and -U, where ID = 0 turns them off. # All but -d, -m and -M Directives are only implemented for ATA devices # # If the test string DEVICESCAN is the first uncommented text # then smartd will scan for devices /dev/hd[a-l] and /dev/sd[a-z] # DEVICESCAN may be followed by any desired Directives. python-augeas-1.2.0/test/testroot/etc/sudoers000066400000000000000000000061631451643112200213270ustar00rootroot00000000000000## Sudoers allows particular users to run various commands as ## the root user, without needing the root password. ## ## Examples are provided at the bottom of the file for collections ## of related commands, which can then be delegated out to particular ## users or groups. ## ## This file must be edited with the 'visudo' command. ## Host Aliases ## Groups of machines. You may prefer to use hostnames (perhaps using ## wildcards for entire domains) or IP addresses instead. # Host_Alias FILESERVERS = fs1, fs2 # Host_Alias MAILSERVERS = smtp, smtp2 ## User Aliases ## These aren't often necessary, as you can use regular groups ## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname ## rather than USERALIAS # User_Alias ADMINS = jsmith, mikem ## Command Aliases ## These are groups of related commands... ## Networking Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool ## Installation and management of software Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum ## Services Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig ## Updating the locate database Cmnd_Alias LOCATE = /usr/sbin/updatedb ## Storage Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount ## Delegating permissions Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp ## Processes Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall ## Drivers Cmnd_Alias DRIVERS = /sbin/modprobe # Defaults specification # # Disable "ssh hostname sudo ", because it will show the password in clear. # You have to run "ssh -t hostname sudo ". # Defaults requiretty Defaults env_reset Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \ LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \ LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \ LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \ _XKB_CHARSET XAUTHORITY" ## Next comes the main part: which users can run what software on ## which machines (the sudoers file can be shared between multiple ## systems). ## Syntax: ## ## user MACHINE=COMMANDS ## ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere root ALL=(ALL) ALL ## Allows members of the 'sys' group to run networking, software, ## service management apps and more. # %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS ## Allows people in group wheel to run all commands ##%wheel ALL=(ALL) ALL ## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL ## Allows members of the users group to mount and unmount the ## cdrom as root # %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom ## Allows members of the users group to shutdown this system # %users localhost=/sbin/shutdown -h now python-augeas-1.2.0/test/testroot/etc/sysconfig/000077500000000000000000000000001451643112200217165ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/sysconfig/atd000066400000000000000000000006231451643112200224120ustar00rootroot00000000000000# specify additional command line arguments for atd # # -l Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time # choice of 0.8. For an SMP system with n CPUs, you will probably want to set this higher than n-1. # # -b Specifiy the minimum interval in seconds between the start of two batch jobs (60 default). #example: #OPTS="-l 4 -b 120" python-augeas-1.2.0/test/testroot/etc/sysconfig/auditd000066400000000000000000000010021451643112200231040ustar00rootroot00000000000000# Add extra options here EXTRAOPTIONS="" # # This is the locale information that audit uses. Its defaulted to en_US. # To remove all locale information from audit's environment, set # AUDITD_LANG to the empty string or the string "none". AUDITD_LANG="en_US" # # This option is used to determine if rules & watches should be deleted on # shutdown. This is beneficial in most cases so that a watch doesn't linger # on a drive that is being unmounted. If set to no, it will NOT be cleaned up. AUDITD_CLEAN_STOP="yes" python-augeas-1.2.0/test/testroot/etc/sysconfig/authconfig000066400000000000000000000004061451643112200237700ustar00rootroot00000000000000USEWINBINDAUTH=no USEPASSWDQC=no USESYSNETAUTH=no USEPAMACCESS=no USEKERBEROS=no FORCESMARTCARD=no USESMBAUTH=no USESMARTCARD=no USELDAPAUTH=no USELOCAUTHORIZE=yes USEWINBIND=no USESHADOW=yes USEDB=no USEHESIOD=no USELDAP=no USEMD5=yes USECRACKLIB=yes USENIS=no python-augeas-1.2.0/test/testroot/etc/sysconfig/autofs000066400000000000000000000043211451643112200231420ustar00rootroot00000000000000# # Define default options for autofs. # # MASTER_MAP_NAME - default map name for the master map. # #MASTER_MAP_NAME="auto.master" # # TIMEOUT - set the default mount timeout (default 600). # TIMEOUT=300 # # NEGATIVE_TIMEOUT - set the default negative timeout for # failed mount attempts (default 60). # #NEGATIVE_TIMEOUT=60 # # BROWSE_MODE - maps are browsable by default. # BROWSE_MODE="no" # # APPEND_OPTIONS - append to global options instead of replace. # #APPEND_OPTIONS="yes" # # LOGGING - set default log level "none", "verbose" or "debug" # #LOGGING="none" # # Define base dn for map dn lookup. # # Define server URIs # # LDAP_URI - space seperated list of server uris of the form # ://[/] where can be ldap # or ldaps. The option can be given multiple times. # Map entries that include a server name override # this option. # #LDAP_URI="" # # LDAP__TIMEOUT - timeout value for the synchronous API calls # (default is LDAP library default). # #LDAP_TIMEOUT=-1 # # LDAP_NETWORK_TIMEOUT - set the network response timeout (default 8). # #LDAP_NETWORK_TIMEOUT=8 # # SEARCH_BASE - base dn to use for searching for map search dn. # Multiple entries can be given and they are checked # in the order they occur here. # #SEARCH_BASE="" # # Define the LDAP schema to used for lookups # # If no schema is set autofs will check each of the schemas # below in the order given to try and locate an appropriate # basdn for lookups. If you want to minimize the number of # queries to the server set the values here. # #MAP_OBJECT_CLASS="nisMap" #ENTRY_OBJECT_CLASS="nisObject" #MAP_ATTRIBUTE="nisMapName" #ENTRY_ATTRIBUTE="cn" #VALUE_ATTRIBUTE="nisMapEntry" # # Other common LDAP nameing # #MAP_OBJECT_CLASS="automountMap" #ENTRY_OBJECT_CLASS="automount" #MAP_ATTRIBUTE="ou" #ENTRY_ATTRIBUTE="cn" #VALUE_ATTRIBUTE="automountInformation" # #MAP_OBJECT_CLASS="automountMap" #ENTRY_OBJECT_CLASS="automount" #MAP_ATTRIBUTE="automountMapName" #ENTRY_ATTRIBUTE="automountKey" #VALUE_ATTRIBUTE="automountInformation" # # AUTH_CONF_FILE - set the default location for the SASL # authentication configuration file. # #AUTH_CONF_FILE="/etc/autofs_ldap_auth.conf" # # General global options # #OPTIONS="" # python-augeas-1.2.0/test/testroot/etc/sysconfig/bittorrent000066400000000000000000000005301451643112200240330ustar00rootroot00000000000000SEEDDIR=/var/lib/bittorrent/data SEEDOPTS="--max_upload_rate 350 --display_interval 300" SEEDLOG=/var/log/bittorrent/btseed.log TRACKPORT=6969 TRACKDIR=/var/lib/bittorrent/data TRACKSTATEFILE=/var/lib/bittorrent/state/bttrack TRACKLOG=/var/log/bittorrent/bttrack.log TRACKOPTS="--min_time_between_log_flushes 4.0 --show_names 1 --hupmonitor 1" python-augeas-1.2.0/test/testroot/etc/sysconfig/bluetooth000066400000000000000000000003511451643112200236450ustar00rootroot00000000000000# Enable this to use hid2hci to switch a Bluetooth device in USB HID mode # to HCI mode for Bluetooth operation. #HID2HCI_ENABLE=true # Enable this to switch capable devices back to HID mode on Bluetooth shutdown #HID2HCI_UNDO=true python-augeas-1.2.0/test/testroot/etc/sysconfig/clock000066400000000000000000000002621451643112200227340ustar00rootroot00000000000000# The ZONE parameter is only evaluated by system-config-date. # The time zone of the system is defined by the contents of /etc/localtime. ZONE="Europe/Berlin" UTC=true ARC=false python-augeas-1.2.0/test/testroot/etc/sysconfig/cpuspeed000066400000000000000000000053771451643112200234650ustar00rootroot00000000000000# /etc/sysconfig/cpuspeed # # This configuration file controls the behavior of both the # cpuspeed daemon and various cpufreq modules. # For the vast majority of users, there shouldn't be any need to # alter the contents of this file at all. By and large, frequency # scaling should Just Work(tm) with the defaults. ### DRIVER ### # Your CPUFreq driver module # Note that many drivers are now built-in, rather than built as modules, # so its usually best not to specify one. The most commonly-needed driver # module these days is 'p4-clockmod', however, in most cases, it is not # recommended for use. See: http://lkml.org/lkml/2006/2/25/84 # default value: empty (try to auto-detect/use built-in) DRIVER= ### GOVERNOR ### # Which scaling governor to use # Details on scaling governors for your cpu(s) can be found in # cpu-freq/governors.txt, part of the kernel-doc package # NOTES: # - The GOVERNOR parameter is only valid on centrino, powernow-k8 (amd64) # and p4-clockmod platforms, other platforms that support frequency # scaling always use the 'userspace' governor. # - Using the 'userspace' governor will trigger the cpuspeed daemon to run, # which provides said user-space frequency scaling. # default value: empty (defaults to ondemand on centrino, powernow-k8, # and p4-clockmod systems, userspace on others) GOVERNOR= ### FREQUENCIES ### # NOTE: valid max/min frequencies for your cpu(s) can be found in # /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies # on systems that support frequency scaling (though only after the # appropriate drivers have been loaded via the cpuspeed initscript). # maximum speed to scale up to # default value: empty (use cpu reported maximum) MAX_SPEED= # minimum speed to scale down to # default value: empty (use cpu reported minimum) MIN_SPEED= ### SCALING THRESHOLDS ### # Busy percentage threshold over which to scale up to max frequency # default value: empty (use governor default) UP_THRESHOLD= # Busy percentage threshold under which to scale frequency down # default value: empty (use governor default) DOWN_THRESHOLD= ### NICE PROCESS HANDLING ### # Let background (nice) processes speed up the cpu # default value: 0 (background process usage can speed up cpu) # alternate value: 1 (background processes will be ignored) IGNORE_NICE=0 ##################################################### ########## HISTORICAL CPUSPEED CONFIG BITS ########## ##################################################### VMAJOR=1 VMINOR=1 # Add your favorite options here #OPTS="$OPTS -s 0 -i 10 -r" # uncomment and modify this to check the state of the AC adapter #OPTS="$OPTS -a /proc/acpi/ac_adapter/*/state" # uncomment and modify this to check the system temperature #OPTS="$OPTS -t /proc/acpi/thermal_zone/*/temperature 75" python-augeas-1.2.0/test/testroot/etc/sysconfig/crond000077500000000000000000000010001451643112200227400ustar00rootroot00000000000000# Settings for the CRON daemon. # CRONDARGS= : any extra command-line startup arguments for crond # CRON_VALIDATE_MAILRCPTS=1:a non-empty value of this variable will # enable vixie-cron-4.1's validation of # mail recipient names, which would then be # restricted to contain only the chars # from this tr(1) set : [@!:%-_.,:alnum:] # otherwise mailing is not attempted. CRONDARGS= python-augeas-1.2.0/test/testroot/etc/sysconfig/crontab000066400000000000000000000005321451643112200232710ustar00rootroot00000000000000# Possible values are 1, 2, ... or nothing # Delay is determined using the hostname and the variable (Delay) from this configuration file. # Bigger value means shorter delay. # This delay could be switched off, but then you can have problems with network overload # (for example yum updates in cron.daily run on all your computers etc.) DELAY=1 python-augeas-1.2.0/test/testroot/etc/sysconfig/dund000066400000000000000000000000371451643112200225730ustar00rootroot00000000000000#DUNDARGS='--search --persist' python-augeas-1.2.0/test/testroot/etc/sysconfig/firstboot000066400000000000000000000000211451643112200236450ustar00rootroot00000000000000RUN_FIRSTBOOT=NO python-augeas-1.2.0/test/testroot/etc/sysconfig/grub000066400000000000000000000000311451643112200225720ustar00rootroot00000000000000boot=/dev/sdc forcelba=0 python-augeas-1.2.0/test/testroot/etc/sysconfig/hsqldb000066400000000000000000000133011451643112200231140ustar00rootroot00000000000000# $Id: hsqldb-1.73.0-standard.cfg,v 1.1 2004/12/23 22:21:08 fnasser Exp $ # Sample configuration file for HSQLDB database server. # See the "UNIX Quick Start" chapter of the Hsqldb User Guide. # N.b.!!!! You must place this in the right location for your type of UNIX. # See the init script "hsqldb" to see where this must be placed and # what it should be renamed to. # This file is "sourced" by a Bourne shell, so use Bourne shell syntax. # This file WILL NOT WORK until you set (at least) the non-commented # variables to the appropriate values for your system. # Life will be easier if you avoid all filepaths with spaces or any other # funny characters. Don't ask for support if you ignore this advice. # Thanks to Meikel Bisping for his contributions. -- Blaine # JPackage hsqldb home is /var/lib/hsqldb HSQLDB_HOME=/var/lib/hsqldb # JPackage source Java config . /etc/java/java.conf JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/jre} JAVA_EXECUTABLE=${JAVA_HOME}/bin/java # Unless you copied a hsqldb.jar file from another system, this typically # resides at $HSQLDB_HOME/lib/hsqldb.jar, where $HSQLDB_HOME is your HSQLDB # software base directory. HSQLDB_JAR_PATH=${HSQLDB_HOME}/lib/hsqldb.jar # Where the file "server.properties" (or "webserver.properties") resides. SERVER_HOME=${HSQLDB_HOME} # What UNIX user the Server/WebServer process will run as. # (The shutdown client is always run as root or the invoker of the init script). # Runs as root by default, but you should take the time to set database file # ownerships to another user and set that user name here. # You do need to run as root if your Server/WebServer will run on a privileged # (< 1024) port. # If you really do want to run as root, comment out the HSQLDB_OWNER setting # completely. I.e., do not set it to root. This will run Server/Webserver # without any "su" at all. HSQLDB_OWNER=hsqldb # We require all Server/WebServer instances to be accessible within # $MAX_START_SECS from when the Server/WebServer is started. # Defaults to 60. # Raise this is you are running lots of DB instances or have a slow server. #MAX_START_SECS=200 # Ditto for this one #SU_ECHO_SECS=1 # Time to allow for JVM to die after all HSQLDB instances stopped. # Defaults to 1. #MAX_TERMINATE_SECS=0 # These are "urlid" values from a SqlTool authentication file # ** IN ADDITION TO THOSE IN YOUR server.properties OR webserver.properties ** # file. All server.urlid.X values from your properties file will automatically # be started/stopped/tested. $SHUTDOWN_URLIDS is for additional urlids which # will stopped. (Therefore, most users will not set this at all). # Separate multiple values with white space. NO OTHER SPECIAL CHARACTERS! # Make sure to quote the entire value if it contains white space separator(s). # Defaults to none (i.e., only urlids set in properties file will be stopped). #SHUTDOWN_URLIDS='sa mygms' # SqlTool authentication file used only for shutdown. # The default value will be sqltool.rc in root's home directory, since it is # root who runs the init script. # (See the SqlTool chapter of the HSQLDB User Guide if you don't understand # this). AUTH_FILE=${HSQLDB_HOME}/sqltool.rc # Set to 'WebServer' to start a HSQLDB WebServer instead of a Server. # Defaults to 'Server'. #TARGET_CLASS=WebServer # Server-side classpath IN ADDITION TO the HSQLDB_JAR_PATH set above. # The classpath here is *earlier* than HSQLDB_JAR_PATH, to allow you # override classes in the HSQLDB_JAR_PATH jar file. # In particular, you will want to add classpath elements to give access of # all of your store procedures (store procedures are documented in the # HSQLDB User Guide in the SQL Syntax chapter. # # N.B.! # If you're adding files to the classpath in order to be able to call them # from SQL queries, you will be unable to access them unless you adjust the # value of the system property hsqldb.method_class_names. Please see the # comments on SERVER_JVMARGS, at the end of this file. # SERVER_ADDL_CLASSPATH=/home/blaine/storedprocs.jar:/usr/dev/dbutil/classes # For TLS encryption for your Server, set these two variables. # N.b.: If you set these, then make this file unreadable to non-root users!!!! # See the TLS chapter of the HSQLDB User Guide, paying attention to the # security warning(s). # If you are running with a private server cert, then you will also need to # set "truststore" in the your SqlTool config file (location is set by the # AUTH_FILE variable in this file, or it must be at the default location for # HSQLDB_OWNER). #TLS_KEYSTORE=/path/to/jks/server.store #TLS_PASSWORD=password # Any JVM args for the invocation of the JDBC client used to verify DB # instances and to shut them down (SqlToolSprayer). # For multiple args, put quotes around entire value. #CLIENT_JVMARGS=-Djavax.net.debug=ssl # Any JVM args for the server. # For multiple args, put quotes around entire value. # # N.B.! # The default value of SERVER_JVMARGS sets the system property # hsqldb.method_class_names to be empty. This is in order to lessen the # security risk posed by HSQLDB allowing Java method calls in SQL statements. # The implications of changing this value (as explained by the authors of # HSQLDB) are as follows: # If [it] is not set, then static methods of all available Java classes # can be accessed as functions in HSQLDB. If the property is set, then # only the list of semicolon seperated method names becomes accessible. # An empty property value means no class is accessible. # Regardless of the value of hsqldb.method_class_names, methods in # org.hsqldb.Library will be accessible. # Before making changes to the value below, please be advised of the possible # dangers involved in allowing SQL queries to contain Java method calls. SERVER_JVMARGS=-Dhsqldb.method_class_names=\"\" python-augeas-1.2.0/test/testroot/etc/sysconfig/httpd000066400000000000000000000011501451643112200227610ustar00rootroot00000000000000# Configuration file for the httpd service. # # The default processing model (MPM) is the process-based # 'prefork' model. A thread-based model, 'worker', is also # available, but does not work with some modules (such as PHP). # The service must be stopped before changing this variable. # #HTTPD=/usr/sbin/httpd.worker # # To pass additional options (for instance, -D definitions) to the # httpd binary at startup, set OPTIONS here. # #OPTIONS= # # By default, the httpd process is started in the C locale; to # change the locale in which the server runs, the HTTPD_LANG # variable can be set. # #HTTPD_LANG=C python-augeas-1.2.0/test/testroot/etc/sysconfig/hwconf000066400000000000000000000230731451643112200231320ustar00rootroot00000000000000- class: OTHER bus: PCI detached: 0 driver: i82975x_edac desc: "Intel Corporation 82975X Memory Controller Hub" vendorId: 8086 deviceId: 277c subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 0 pcifn: 0 - class: OTHER bus: PCI detached: 0 driver: shpchp desc: "Intel Corporation 82975X PCI Express Root Port" vendorId: 8086 deviceId: 277d subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1 pcifn: 0 - class: OTHER bus: PCI detached: 0 driver: shpchp desc: "Intel Corporation 82801G (ICH7 Family) PCI Express Port 1" vendorId: 8086 deviceId: 27d0 subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1c pcifn: 0 - class: OTHER bus: PCI detached: 0 driver: shpchp desc: "Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5" vendorId: 8086 deviceId: 27e0 subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1c pcifn: 4 - class: OTHER bus: PCI detached: 0 driver: shpchp desc: "Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6" vendorId: 8086 deviceId: 27e2 subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1c pcifn: 5 - class: OTHER bus: PCI detached: 0 desc: "Intel Corporation 82801 PCI Bridge" vendorId: 8086 deviceId: 244e subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1e pcifn: 0 - class: OTHER bus: PCI detached: 0 driver: iTCO_wdt desc: "Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge" vendorId: 8086 deviceId: 27b8 subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1f pcifn: 0 - class: OTHER bus: PCI detached: 0 driver: i2c-i801 desc: "Intel Corporation 82801G (ICH7 Family) SMBus Controller" vendorId: 8086 deviceId: 27da subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1f pcifn: 3 - class: OTHER bus: PCI detached: 0 driver: shpchp desc: "Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode)" vendorId: 3388 deviceId: 0021 subVendorId: 0000 subDeviceId: 0000 pciType: 1 pcidom: 0 pcibus: 5 pcidev: 4 pcifn: 0 - class: OTHER bus: USB detached: 0 desc: "Dell Dell USB Keyboard" usbclass: 3 usbsubclass: 0 usbprotocol: 0 usbbus: 1 usblevel: 3 usbport: 0 usbdev: 6 vendorId: 413c deviceId: 2010 usbmfr: Dell usbprod: Dell USB Keyboard - class: OTHER bus: USB detached: 0 desc: "Dell Dell USB Keyboard Hub" usbclass: 9 usbsubclass: 0 usbprotocol: 0 usbbus: 1 usblevel: 2 usbport: 1 usbdev: 5 vendorId: 413c deviceId: 1003 usbmfr: Dell usbprod: Dell USB Keyboard Hub - class: OTHER bus: USB detached: 0 desc: "Linux 2.6.24.3-50.fc8 ehci_hcd EHCI Host Controller" usbclass: 9 usbsubclass: 0 usbprotocol: 0 usbbus: 1 usblevel: 0 usbport: 0 usbdev: 1 vendorId: 0000 deviceId: 0000 usbmfr: Linux 2.6.24.3-50.fc8 ehci_hcd usbprod: EHCI Host Controller - class: OTHER bus: USB detached: 0 desc: "Linux 2.6.24.3-50.fc8 uhci_hcd UHCI Host Controller" usbclass: 9 usbsubclass: 0 usbprotocol: 0 usbbus: 5 usblevel: 0 usbport: 0 usbdev: 1 vendorId: 0000 deviceId: 0000 usbmfr: Linux 2.6.24.3-50.fc8 uhci_hcd usbprod: UHCI Host Controller - class: OTHER bus: USB detached: 0 desc: "Linux 2.6.24.3-50.fc8 uhci_hcd UHCI Host Controller" usbclass: 9 usbsubclass: 0 usbprotocol: 0 usbbus: 4 usblevel: 0 usbport: 0 usbdev: 1 vendorId: 0000 deviceId: 0000 usbmfr: Linux 2.6.24.3-50.fc8 uhci_hcd usbprod: UHCI Host Controller - class: OTHER bus: USB detached: 0 desc: "Linux 2.6.24.3-50.fc8 uhci_hcd UHCI Host Controller" usbclass: 9 usbsubclass: 0 usbprotocol: 0 usbbus: 3 usblevel: 0 usbport: 0 usbdev: 1 vendorId: 0000 deviceId: 0000 usbmfr: Linux 2.6.24.3-50.fc8 uhci_hcd usbprod: UHCI Host Controller - class: OTHER bus: USB detached: 0 desc: "Linux 2.6.24.3-50.fc8 uhci_hcd UHCI Host Controller" usbclass: 9 usbsubclass: 0 usbprotocol: 0 usbbus: 2 usblevel: 0 usbport: 0 usbdev: 1 vendorId: 0000 deviceId: 0000 usbmfr: Linux 2.6.24.3-50.fc8 uhci_hcd usbprod: UHCI Host Controller - class: OTHER bus: PSAUX detached: 0 driver: pcspkr desc: "PC Speaker" - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0103" deviceId: PNP0103 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0200" deviceId: PNP0200 - class: OTHER bus: ISAPNP detached: 0 driver: parport_pc desc: "PNP0401" deviceId: PNP0401 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0501" deviceId: PNP0501 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0800" deviceId: PNP0800 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0a03" deviceId: PNP0a03 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0b00" deviceId: PNP0b00 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0c01" deviceId: PNP0c01 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0c01" deviceId: PNP0c01 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0c02" deviceId: PNP0c02 - class: OTHER bus: ISAPNP detached: 0 desc: "PNP0c04" deviceId: PNP0c04 - class: OTHER bus: PSAUX detached: 0 desc: "Power Button (CM)" - class: OTHER bus: PSAUX detached: 0 desc: "Power Button (FF)" - class: NETWORK bus: PCI detached: 0 device: eth0 driver: tg3 desc: "Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express" network.hwaddr: 00:1d:09:03:74:57 vendorId: 14e4 deviceId: 167a subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 4 pcidev: 0 pcifn: 0 - class: MOUSE bus: USB detached: 0 device: input/mice driver: genericwheelusb desc: "Dell Dell USB Optical Mouse" usbclass: 3 usbsubclass: 1 usbprotocol: 2 usbbus: 1 usblevel: 2 usbport: 0 usbdev: 4 vendorId: 413c deviceId: 3012 usbmfr: Dell usbprod: Dell USB Optical Mouse - class: MOUSE bus: PSAUX detached: 0 device: input/mice driver: generic3ps/2 desc: "Macintosh mouse button emulation" - class: AUDIO bus: PCI detached: 0 driver: snd-hda-intel desc: "Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller" vendorId: 8086 deviceId: 27d8 subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1b pcifn: 0 - class: CDROM bus: SCSI detached: 0 device: scd0 desc: "HL-DT-ST DVD+-RW GSA-H53N" host: 4 id: 0 channel: 0 lun: 0 - class: VIDEO bus: PCI detached: 0 driver: nvidia desc: "nVidia Corporation G71GL [Quadro FX 3500]" video.xdriver: nv vendorId: 10de deviceId: 029d subVendorId: 10de subDeviceId: 032b pciType: 1 pcidom: 0 pcibus: 1 pcidev: 0 pcifn: 0 - class: HD bus: USB detached: 0 driver: usb-storage desc: "TEAC CA-200" usbclass: 8 usbsubclass: 6 usbprotocol: 80 usbbus: 1 usblevel: 1 usbport: 2 usbdev: 2 vendorId: 0644 deviceId: 0200 usbmfr: TEAC usbprod: CA-200 - class: HD bus: SCSI detached: 0 device: sda desc: "ATA WDC WD1600ADFS-7" host: 0 id: 0 channel: 0 lun: 0 - class: HD bus: SCSI detached: 0 device: sdb desc: "ATA WDC WD1600ADFS-7" host: 2 id: 0 channel: 0 lun: 0 - class: HD bus: SCSI detached: 0 device: sdc desc: "TEAC USB HS-CF Card" host: 6 id: 0 channel: 0 lun: 0 - class: HD bus: SCSI detached: 0 device: sdd desc: "TEAC USB HS-xD/SM" host: 6 id: 0 channel: 0 lun: 1 - class: HD bus: SCSI detached: 0 device: sde desc: "TEAC USB HS-MS Card" host: 6 id: 0 channel: 0 lun: 2 - class: HD bus: SCSI detached: 0 device: sdf desc: "TEAC USB HS-SD Card" host: 6 id: 0 channel: 0 lun: 3 - class: RAID bus: PCI detached: 0 driver: ahci desc: "Intel Corporation 82801GR/GH (ICH7 Family) SATA RAID Controller" vendorId: 8086 deviceId: 27c3 subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1f pcifn: 2 - class: CAPTURE bus: PCI detached: 0 driver: ivtv desc: "Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder" vendorId: 4444 deviceId: 0016 subVendorId: 0070 subDeviceId: e807 pciType: 1 pcidom: 0 pcibus: 6 pcidev: 8 pcifn: 0 - class: CAPTURE bus: PCI detached: 0 driver: ivtv desc: "Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder" vendorId: 4444 deviceId: 0016 subVendorId: 0070 subDeviceId: e817 pciType: 1 pcidom: 0 pcibus: 6 pcidev: 9 pcifn: 0 - class: KEYBOARD bus: USB detached: 0 driver: keybdev desc: "Dell Dell USB Keyboard" usbclass: 3 usbsubclass: 1 usbprotocol: 1 usbbus: 1 usblevel: 3 usbport: 0 usbdev: 6 vendorId: 413c deviceId: 2010 usbmfr: Dell usbprod: Dell USB Keyboard - class: USB bus: PCI detached: 0 driver: uhci-hcd desc: "Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1" vendorId: 8086 deviceId: 27c8 subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 0 - class: USB bus: PCI detached: 0 driver: uhci-hcd desc: "Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2" vendorId: 8086 deviceId: 27c9 subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 1 - class: USB bus: PCI detached: 0 driver: uhci-hcd desc: "Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3" vendorId: 8086 deviceId: 27ca subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 2 - class: USB bus: PCI detached: 0 driver: uhci-hcd desc: "Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4" vendorId: 8086 deviceId: 27cb subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 3 - class: USB bus: PCI detached: 0 driver: ehci-hcd desc: "Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller" vendorId: 8086 deviceId: 27cc subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1d pcifn: 7 - class: FIREWIRE bus: PCI detached: 0 driver: firewire-ohci desc: "Agere Systems FW323" vendorId: 11c1 deviceId: 5811 subVendorId: 1028 subDeviceId: 8010 pciType: 1 pcidom: 0 pcibus: 5 pcidev: 2 pcifn: 0 - class: IDE bus: PCI detached: 0 driver: ata_piix desc: "Intel Corporation 82801G (ICH7 Family) IDE Controller" vendorId: 8086 deviceId: 27df subVendorId: 1028 subDeviceId: 01de pciType: 1 pcidom: 0 pcibus: 0 pcidev: 1f pcifn: 1 python-augeas-1.2.0/test/testroot/etc/sysconfig/i18n000066400000000000000000000000571451643112200224220ustar00rootroot00000000000000LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16" python-augeas-1.2.0/test/testroot/etc/sysconfig/init000077500000000000000000000020541451643112200226100ustar00rootroot00000000000000# color => new RH6.0 bootup # verbose => old-style bootup # anything else => new style bootup without ANSI colors or positioning BOOTUP=color # Turn on graphical boot GRAPHICAL=yes # column to start "[ OK ]" label in RES_COL=60 # terminal sequence to move to that column. You could change this # to something like "tput hpa ${RES_COL}" if your terminal supports it MOVE_TO_COL="echo -en \\033[${RES_COL}G" # terminal sequence to set color to a 'success' color (currently: green) SETCOLOR_SUCCESS="echo -en \\033[0;32m" # terminal sequence to set color to a 'failure' color (currently: red) SETCOLOR_FAILURE="echo -en \\033[0;31m" # terminal sequence to set color to a 'warning' color (currently: yellow) SETCOLOR_WARNING="echo -en \\033[0;33m" # terminal sequence to reset to the default color. SETCOLOR_NORMAL="echo -en \\033[0;39m" # default kernel loglevel on boot (syslog will reset this) LOGLEVEL=3 # Set to anything other than 'no' to allow hotkey interactive startup... PROMPT=yes # Set to 'yes' to allow probing for devices with swap signatures AUTOSWAP=no python-augeas-1.2.0/test/testroot/etc/sysconfig/ip6tables000066400000000000000000000023711451643112200235350ustar00rootroot00000000000000# Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :RH-Firewall-1-INPUT - [0:0] -A INPUT -j RH-Firewall-1-INPUT -A RH-Firewall-1-INPUT -i lo -j ACCEPT -A RH-Firewall-1-INPUT -p ipv6-icmp -j ACCEPT -A RH-Firewall-1-INPUT -m ipv6header --header 50 -j ACCEPT -A RH-Firewall-1-INPUT -m ipv6header --header 51 -j ACCEPT -A RH-Firewall-1-INPUT -p udp --dport 5353 -d ff02::fb -j ACCEPT -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp6-adm-prohibited -A FORWARD -j REJECT --reject-with icmp6-adm-prohibited COMMIT python-augeas-1.2.0/test/testroot/etc/sysconfig/ip6tables-config000066400000000000000000000033601451643112200247770ustar00rootroot00000000000000# Load additional ip6tables modules (nat helpers) # Default: -none- # Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which # are loaded after the firewall rules are applied. Options for the helpers are # stored in /etc/modprobe.conf. IP6TABLES_MODULES="nf_conntrack_netbios_ns" # Unload modules on restart and stop # Value: yes|no, default: yes # This option has to be 'yes' to get to a sane state for a firewall # restart or stop. Only set to 'no' if there are problems unloading netfilter # modules. IP6TABLES_MODULES_UNLOAD="yes" # Save current firewall rules on stop. # Value: yes|no, default: no # Saves all firewall rules to /etc/sysconfig/ip6tables if firewall gets stopped # (e.g. on system shutdown). IP6TABLES_SAVE_ON_STOP="no" # Save current firewall rules on restart. # Value: yes|no, default: no # Saves all firewall rules to /etc/sysconfig/ip6tables if firewall gets # restarted. IP6TABLES_SAVE_ON_RESTART="no" # Save (and restore) rule and chain counter. # Value: yes|no, default: no # Save counters for rules and chains to /etc/sysconfig/ip6tables if # 'service ip6tables save' is called or on stop or restart if SAVE_ON_STOP or # SAVE_ON_RESTART is enabled. IP6TABLES_SAVE_COUNTER="no" # Numeric status output # Value: yes|no, default: yes # Print IP addresses and port numbers in numeric format in the status output. IP6TABLES_STATUS_NUMERIC="yes" # Verbose status output # Value: yes|no, default: yes # Print info about the number of packets and bytes plus the "input-" and # "outputdevice" in the status output. IP6TABLES_STATUS_VERBOSE="no" # Status output with numbered lines # Value: yes|no, default: yes # Print a counter/number for every rule in the status output. IP6TABLES_STATUS_LINENUMBERS="yes" python-augeas-1.2.0/test/testroot/etc/sysconfig/iptables000066400000000000000000000043171451643112200234510ustar00rootroot00000000000000# Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *nat :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] -A POSTROUTING -o tun+ -j MASQUERADE COMMIT *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :RH-Firewall-1-INPUT - [0:0] :LOCAL - [0:0] -A INPUT -j RH-Firewall-1-INPUT -A RH-Firewall-1-INPUT -i lo -j ACCEPT -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT -A RH-Firewall-1-INPUT -p 50 -j ACCEPT -A RH-Firewall-1-INPUT -p 51 -j ACCEPT -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT -A RH-Firewall-1-INPUT -m udp -p udp --dport 6669 -j ACCEPT -A RH-Firewall-1-INPUT -m tcp -p tcp --dport 6669 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 24800 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A RH-Firewall-1-INPUT --src 192.168.10.0/24 -j LOCAL -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited -A LOCAL -m state --state NEW -m tcp -p tcp --dport 514 -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 514 -j ACCEPT -A LOCAL -m state --state NEW -m tcp -p tcp --dport 631 -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 631 -j ACCEPT -A LOCAL -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 2049 -j ACCEPT -A LOCAL -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 137:139 -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 445 -j ACCEPT -A LOCAL -m state --state NEW -m tcp -p tcp --dport 1024: -j ACCEPT -A LOCAL -m state --state NEW -m udp -p udp --dport 1024: -j ACCEPT -A LOCAL -j REJECT --reject-with icmp-host-prohibited COMMIT python-augeas-1.2.0/test/testroot/etc/sysconfig/iptables-config000066400000000000000000000033431451643112200247120ustar00rootroot00000000000000# Load additional iptables modules (nat helpers) # Default: -none- # Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which # are loaded after the firewall rules are applied. Options for the helpers are # stored in /etc/modprobe.conf. IPTABLES_MODULES="nf_conntrack_netbios_ns" # Unload modules on restart and stop # Value: yes|no, default: yes # This option has to be 'yes' to get to a sane state for a firewall # restart or stop. Only set to 'no' if there are problems unloading netfilter # modules. IPTABLES_MODULES_UNLOAD="yes" # Save current firewall rules on stop. # Value: yes|no, default: no # Saves all firewall rules to /etc/sysconfig/iptables if firewall gets stopped # (e.g. on system shutdown). IPTABLES_SAVE_ON_STOP="no" # Save current firewall rules on restart. # Value: yes|no, default: no # Saves all firewall rules to /etc/sysconfig/iptables if firewall gets # restarted. IPTABLES_SAVE_ON_RESTART="no" # Save (and restore) rule and chain counter. # Value: yes|no, default: no # Save counters for rules and chains to /etc/sysconfig/iptables if # 'service iptables save' is called or on stop or restart if SAVE_ON_STOP or # SAVE_ON_RESTART is enabled. IPTABLES_SAVE_COUNTER="no" # Numeric status output # Value: yes|no, default: yes # Print IP addresses and port numbers in numeric format in the status output. IPTABLES_STATUS_NUMERIC="yes" # Verbose status output # Value: yes|no, default: yes # Print info about the number of packets and bytes plus the "input-" and # "outputdevice" in the status output. IPTABLES_STATUS_VERBOSE="no" # Status output with numbered lines # Value: yes|no, default: yes # Print a counter/number for every rule in the status output. IPTABLES_STATUS_LINENUMBERS="yes" python-augeas-1.2.0/test/testroot/etc/sysconfig/irda000066400000000000000000000000721451643112200225570ustar00rootroot00000000000000IRDA=yes DEVICE=/dev/ttyS2 #DONGLE=actisys+ DISCOVERY=yes python-augeas-1.2.0/test/testroot/etc/sysconfig/irqbalance000066400000000000000000000012101451643112200237340ustar00rootroot00000000000000# irqbalance is a daemon process that distributes interrupts across # CPUS on SMP systems. The default is to rebalance once every 10 # seconds. There is one configuration option: # # ONESHOT=yes # after starting, wait for a minute, then look at the interrupt # load and balance it once; after balancing exit and do not change # it again. ONESHOT= # # IRQ_AFFINITY_MASK # 64 bit bitmask which allows you to indicate which cpu's should # be skipped when reblancing irqs. Cpu numbers which have their # corresponding bits set to zero in this mask will not have any # irq's assigned to them on rebalance # #IRQ_AFFINITY_MASK= python-augeas-1.2.0/test/testroot/etc/sysconfig/kernel000066400000000000000000000002641451643112200231230ustar00rootroot00000000000000# UPDATEDEFAULT specifies if new-kernel-pkg should make # new kernels the default UPDATEDEFAULT=yes # DEFAULTKERNEL specifies the default kernel package type DEFAULTKERNEL=kernel python-augeas-1.2.0/test/testroot/etc/sysconfig/keyboard000066400000000000000000000000621451643112200234370ustar00rootroot00000000000000KEYBOARDTYPE="pc" KEYTABLE="de-latin1-nodeadkeys" python-augeas-1.2.0/test/testroot/etc/sysconfig/libvirtd000077500000000000000000000004231451643112200234620ustar00rootroot00000000000000# Override the default config file #LIBVIRTD_CONFIG=/etc/libvirt/libvirtd.conf # Listen for TCP/IP connections # NB. must setup TLS/SSL keys prior to using this #LIBVIRTD_ARGS="--listen" # Override Kerberos service keytab for SASL/GSSAPI #KRB5_KTNAME=/etc/libvirt/krb5.tab python-augeas-1.2.0/test/testroot/etc/sysconfig/lirc000066400000000000000000000007161451643112200225760ustar00rootroot00000000000000# Note: in addition to these parameters, you need to have working -*- sh -*- # configuration file for lircd (and lircmd if enabled). # Options to lircd(8). Typically, at least a remote controller driver # ("-H foo") needs to be specified here. Run "/usr/sbin/lircd -H help" to get # a listing of supported drivers. LIRCD_OPTIONS="" # If "yes", the init script will try to start lircmd(8) too. ENABLE_LIRCMD="no" # Options to lircmd(8). LIRCMD_OPTIONS="" python-augeas-1.2.0/test/testroot/etc/sysconfig/lm_sensors000066400000000000000000000026271451643112200240340ustar00rootroot00000000000000# /etc/sysconfig/lm_sensors - Defines modules loaded by # /etc/init.d/lm_sensors # Copyright (c) 1998 - 2001 Frodo Looijaard # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # # See also the lm_sensors homepage at: # http://www.lm-sensors.org/ # # This file is used by /etc/init.d/lm_sensors and defines the modules to # be loaded/unloaded. This file is sourced into /etc/init.d/lm_sensors. # # The format of this file is a shell script that simply defines the modules # in order as normal variables with the special names: # MODULE_0, MODULE_1, MODULE_2, etc. # # List the modules that are to be loaded for your system # # Generated by sensors-detect on Wed Mar 12 07:18:10 2008 MODULE_0=coretemp python-augeas-1.2.0/test/testroot/etc/sysconfig/nasd000066400000000000000000000005221451643112200225650ustar00rootroot00000000000000# Options to nasd # See nasd(1) for more details # -aa allow any client to connect # -local allow local clients only # -b detach and run in background # -v enable verbose messages # -d enable debug messages at level # -pn partial networking enabled # -nopn partial networking disabled [default] NASD_OPTIONS="-b -local" python-augeas-1.2.0/test/testroot/etc/sysconfig/netconsole000077500000000000000000000011721451643112200240160ustar00rootroot00000000000000# This is the configuration file for the netconsole service. By starting # this service you allow a remote syslog daemon to record console output # from this system. # The local port number that the netconsole module will use # LOCALPORT=6666 # The ethernet device to send console messages out of (only set this if it # can't be automatically determined) # DEV= # The IP address of the remote syslog server to send messages to # SYSLOGADDR= # The listening port of the remote syslog daemon # SYSLOGPORT=514 # The MAC address of the remote syslog server (only set this if it can't # be automatically determined) # SYSLOGMACADDR= python-augeas-1.2.0/test/testroot/etc/sysconfig/network000066400000000000000000000000411451643112200233250ustar00rootroot00000000000000NETWORKING=yes HOSTNAME=testhost python-augeas-1.2.0/test/testroot/etc/sysconfig/network-scripts/000077500000000000000000000000001451643112200250745ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/sysconfig/network-scripts/ifcfg-eth0000066400000000000000000000002751451643112200267370ustar00rootroot00000000000000# Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes PEERDNS=yes IPV6INIT=no NM_CONTROLLED=no TYPE=Ethernet USERCTL=no DNS1=127.0.0.1 python-augeas-1.2.0/test/testroot/etc/sysconfig/network-scripts/ifcfg-lo000066400000000000000000000003761451643112200265130ustar00rootroot00000000000000DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback python-augeas-1.2.0/test/testroot/etc/sysconfig/nfs000066400000000000000000000025321451643112200224310ustar00rootroot00000000000000# # Define which protocol versions mountd # will advertise. The values are "no" or "yes" # with yes being the default #MOUNTD_NFS_V1="no" #MOUNTD_NFS_V2="no" #MOUNTD_NFS_V3="no" # # # Path to remote quota server. See rquotad(8) #RQUOTAD="/usr/sbin/rpc.rquotad" # Port rquotad should listen on. #RQUOTAD_PORT=875 # Optinal options passed to rquotad #RPCRQUOTADOPTS="" # # # TCP port rpc.lockd should listen on. #LOCKD_TCPPORT=32803 # UDP port rpc.lockd should listen on. #LOCKD_UDPPORT=32769 # # # Optional arguments passed to rpc.nfsd. See rpc.nfsd(8) #RPCNFSDARGS # Number of nfs server processes to be started. # The default is 8. #RPCNFSDCOUNT=8 # # # Optional arguments passed to rpc.mountd. See rpc.mountd(8) #RPCMOUNTDOPTS="" # Port rpc.mountd should listen on. #MOUNTD_PORT=892 # # # Optional arguments passed to rpc.statd. See rpc.statd(8) #STATDARG="" # Port rpc.statd should listen on. #STATD_PORT=662 # Outgoing port statd should used. The default is port # is random #STATD_OUTGOING_PORT=2020 # Specify callout program #STATD_HA_CALLOUT="/usr/local/bin/foo" # # # Optional arguments passed to rpc.idmapd. See rpc.idmapd(8) #RPCIDMAPDARGS="" # # Set to turn on Secure NFS mounts. #SECURE_NFS="yes" # Optional arguments passed to rpc.gssd. See rpc.gssd(8) #RPCGSSDARGS="" # Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8) #RPCSVCGSSDARGS="" # python-augeas-1.2.0/test/testroot/etc/sysconfig/nspluginwrapper000066400000000000000000000011451451643112200251020ustar00rootroot00000000000000#!/bin/sh # # Copyright 2007 Red Hat, Inc. # # This software may be freely redistributed under the terms of the GNU # public license. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Configuration file for nspluginwrapper # List of plugins what are excluded from wrapping # Names of plugins are separated by ':' export IGNORE_WRAP="libtotem*:libjavaplugin*:gecko-mediaplayer*:mplayerplug-in*" # List of plugins what are excluded from linking export IGNORE_LINK="" python-augeas-1.2.0/test/testroot/etc/sysconfig/ntpd000066400000000000000000000001251451643112200226040ustar00rootroot00000000000000# Drop root to id 'ntp:ntp' by default. OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g" python-augeas-1.2.0/test/testroot/etc/sysconfig/ntpdate000066400000000000000000000001671451643112200233040ustar00rootroot00000000000000# Options for ntpdate OPTIONS="-U ntp -s -b" # Set to 'yes' to sync hw clock after successful ntpdate SYNC_HWCLOCK=no python-augeas-1.2.0/test/testroot/etc/sysconfig/packagekit-background000066400000000000000000000006311451643112200260610ustar00rootroot00000000000000# should we attempt to do this? (valid: yes|no) ENABLED=no # don't install, just check (valid: yes|no) CHECK_ONLY=no # if MAILTO is set, the mail command is used to deliver PackageKit output # by default MAILTO is unset, so crond mails the output by itself #MAILTO=root # you may set SYSTEMNAME if you want your PackageKit emails tagged differently # default is output of hostname command #SYSTEM_NAME="" python-augeas-1.2.0/test/testroot/etc/sysconfig/pand000066400000000000000000000001071451643112200225610ustar00rootroot00000000000000#PANDARGS='--listen --role NAP' #PANDARGS='--search --cache --persist' python-augeas-1.2.0/test/testroot/etc/sysconfig/prelink000066400000000000000000000026631451643112200233140ustar00rootroot00000000000000# Set this to no to disable prelinking altogether # (if you change this from yes to no prelink -ua # will be run next night to undo prelinking) PRELINKING=yes # Options to pass to prelink # -m Try to conserve virtual memory by allowing overlapping # assigned virtual memory slots for libraries which # never appear together in one binary # -R Randomize virtual memory slot assignments for libraries. # This makes it slightly harder for various buffer overflow # attacks, since library addresses will be different on each # host using -R. PRELINK_OPTS=-mR # How often should full prelink be run (in days) # Normally, prelink will be run in quick mode, every # $PRELINK_FULL_TIME_INTERVAL days it will be run # in normal mode. Comment it out if it should be run # in normal mode always. PRELINK_FULL_TIME_INTERVAL=14 # How often should prelink run (in days) even if # no packages have been upgraded via rpm. # If $PRELINK_FULL_TIME_INTERVAL days have not elapsed # yet since last normal mode prelinking, last # quick mode prelinking happened less than # $PRELINK_NONRPM_CHECK_INTERVAL days ago # and no packages have been upgraded by rpm # since last quick mode prelinking, prelink # will not do anything. # Change to # PRELINK_NONRPM_CHECK_INTERVAL=0 # if you want to disable the rpm database timestamp # check (especially if you don't use rpm/up2date/yum/apt-rpm # exclusively to upgrade system libraries and/or binaries). PRELINK_NONRPM_CHECK_INTERVAL=7 python-augeas-1.2.0/test/testroot/etc/sysconfig/readonly-root000077500000000000000000000012231451643112200244400ustar00rootroot00000000000000# Set to 'yes' to mount the system filesystems read-only. READONLY=no # Set to 'yes' to mount various temporary state as either tmpfs # or on the block device labelled RW_LABEL. Implied by READONLY TEMPORARY_STATE=no # Place to put a tmpfs for temporary scratch writable space RW_MOUNT=/var/lib/stateless/writable # Label on local filesystem which can be used for temporary scratch space RW_LABEL=stateless-rw # Options to use for temporary mount RW_OPTIONS= # Label for partition with persistent data STATE_LABEL=stateless-state # Where to mount to the persistent data STATE_MOUNT=/var/lib/stateless/state # Options to use for peristent mount STATE_OPTIONS= python-augeas-1.2.0/test/testroot/etc/sysconfig/rsyslog000066400000000000000000000002411451643112200233400ustar00rootroot00000000000000# Options to syslogd # syslogd options are deprecated in rsyslog v3 # if you want to use them, switch to compatibility mode 2 by "-c 2" SYSLOGD_OPTIONS="-c 3" python-augeas-1.2.0/test/testroot/etc/sysconfig/samba000066400000000000000000000001571451643112200227270ustar00rootroot00000000000000# Options to smbd SMBDOPTIONS="-D" # Options to nmbd NMBDOPTIONS="-D" # Options for winbindd WINBINDOPTIONS="" python-augeas-1.2.0/test/testroot/etc/sysconfig/saslauthd000066400000000000000000000006611451643112200236340ustar00rootroot00000000000000# Directory in which to place saslauthd's listening socket, pid file, and so # on. This directory must already exist. SOCKETDIR=/var/run/saslauthd # Mechanism to use when checking passwords. Run "saslauthd -v" to get a list # of which mechanism your installation was compiled with the ablity to use. MECH=pam # Additional flags to pass to saslauthd on the command line. See saslauthd(8) # for the list of accepted flags. FLAGS= python-augeas-1.2.0/test/testroot/etc/sysconfig/sendmail000066400000000000000000000000241451643112200234310ustar00rootroot00000000000000DAEMON=yes QUEUE=1h python-augeas-1.2.0/test/testroot/etc/sysconfig/smartmontools000066400000000000000000000001751451643112200245650ustar00rootroot00000000000000# command line options for smartd smartd_opts="-q never" # autogenerated config file options # smartd_conf_opts="-H -m root" python-augeas-1.2.0/test/testroot/etc/sysconfig/snmpd000066400000000000000000000001251451643112200227600ustar00rootroot00000000000000# snmpd command line options # OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a" python-augeas-1.2.0/test/testroot/etc/sysconfig/spamassassin000066400000000000000000000000571451643112200243500ustar00rootroot00000000000000# Options to spamd SPAMDOPTIONS="-d -c -m5 -H" python-augeas-1.2.0/test/testroot/etc/sysconfig/system-config-firewall000066400000000000000000000002061451643112200262310ustar00rootroot00000000000000# Configuration file for system-config-firewall --enabled --service=ssh --service=samba --service=dns --service=ipsec --service=mdns python-augeas-1.2.0/test/testroot/etc/sysconfig/system-config-securitylevel000066400000000000000000000001261451643112200273240ustar00rootroot00000000000000# system-config-securitylevel config written out by anaconda --enabled --port=22:tcp python-augeas-1.2.0/test/testroot/etc/sysconfig/system-config-users000066400000000000000000000004601451643112200255670ustar00rootroot00000000000000# Configuration file for system-config-users # Filter out system users FILTER=true # Automatically assign highest UID for new users ASSIGN_HIGHEST_UID=true # Automatically assign highest GID for new groups ASSIGN_HIGHEST_GID=true # Prefer to have same UID and GID for new users PREFER_SAME_UID_GID=true python-augeas-1.2.0/test/testroot/etc/sysconfig/tomcat5000066400000000000000000000042771451643112200232270ustar00rootroot00000000000000# Service-specific configuration file for tomcat5 services # This will be sourced by the SysV service script after the global # configuration file /etc/tomcat5/tomcat5.conf, thus allowing values # to be overridden on a per-service way # # NEVER change the init script itself: # To change values for all services make your changes in # /etc/tomcat5/tomcat5.conf # To change values for a specific service, change it here # To create a new service, create a link from /etc/init.d/ to # /etc/init.d/tomcat5 (do not copy the init script) and make a copy of the # /etc/sysconfig/tomcat5 file to /etc/sysconfig/ and change # the property values so the two services won't conflict # Register the new service in the system as usual (see chkconfig and similars) # # tomcat5 service configuration file # you could also override JAVA_HOME here # Where your java installation lives JAVA_HOME="/usr/lib/jvm/java" # Where your tomcat installation lives # That change from previous RPM where TOMCAT_HOME # used to be /var/tomcat. # Now /var/tomcat will be the base for webapps only CATALINA_HOME="/usr/share/tomcat5" JASPER_HOME="/usr/share/tomcat5" CATALINA_TMPDIR="/usr/share/tomcat5/temp" JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed" # You can pass some parameters to java # here if you wish to #JAVA_OPTS="-Xminf0.1 -Xmaxf0.3" # Use JAVA_OPTS to set java.library.path for libtcnative.so #JAVA_OPTS="-Djava.library.path=/usr/lib64 # Bug 190: # https://www.jpackage.org/bugzilla/show_bug.cgi?id=190 # System property catalina.ext.dirs should be set to its default value # for ExtensionValidator to be functional. JAVA_OPTS="$JAVA_OPTS -Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HOME/common/lib" # What user should run tomcat TOMCAT_USER="tomcat" # You can change your tomcat locale here #LANG=en_US # Time to wait in seconds, before killing process SHUTDOWN_WAIT=30 # Set the TOMCAT_PID location CATALINA_PID=/var/run/tomcat5.pid # Connector port is 8080 for this tomcat5 instance #CONNECTOR_PORT=8080 # If you wish to further customize your tomcat environment, # put your own definitions here # (i.e. LD_LIBRARY_PATH for some jdbc drivers) # Just do not forget to export them :) python-augeas-1.2.0/test/testroot/etc/sysconfig/udev000066400000000000000000000005121451643112200226020ustar00rootroot00000000000000# If set to "yes", generates cache shell files of what MAKEDEV would do. # May speedup some systems with slow disks. # EXPERIMENTAL - use at your own risk UDEV_USE_MAKEDEV_CACHE="no" # Generates /dev/disk/by* symlinks. # Set to "no", if you *really* don't need them and want a speedup at boot time. UDEV_PERSISTENT_STORAGE="yes" python-augeas-1.2.0/test/testroot/etc/sysconfig/wpa_supplicant000066400000000000000000000005641451643112200246770ustar00rootroot00000000000000# Use the flag "-i" before each of your interfaces, like so: # INTERFACES="-ieth1 -iwlan0" INTERFACES="" # Use the flag "-D" before each driver, like so: # DRIVERS="-Dwext" DRIVERS="" # Other arguments # -u Enable the D-Bus interface (required for use with NetworkManager) # -f Log to /var/log/wpa_supplicant.log OTHER_ARGS="-u -f /var/log/wpa_supplicant.log" python-augeas-1.2.0/test/testroot/etc/sysctl.conf000066400000000000000000000012361451643112200221040ustar00rootroot00000000000000# Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 1 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 # Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 python-augeas-1.2.0/test/testroot/etc/warnquota.conf000066400000000000000000000055501451643112200226070ustar00rootroot00000000000000# this is an example warnquota.conf # ; ; and # type comments are allowed # and even blank lines # values can be quoted: MAIL_CMD = "/usr/sbin/sendmail -t" FROM = # but they don't have to be: SUBJECT = NOTE: You are exceeding your allocated disk space limits CC_TO = "root@localhost" # If you set this variable CC will be used only when user has less than # specified grace time left (examples of possible times: 5 seconds, 1 minute, # 12 hours, 5 days) # CC_BEFORE = 2 days SUPPORT = "root@myhost.com" PHONE = "(123) 456-1111 or (222) 333-4444" # Text in the beginning of the mail (if not specified, default text is used) # This way text can be split to more lines # Line breaks are done by '|' character # The expressions %i, %h, %d, and %% are substituted for user/group name, # host name, domain name, and '%' respectively. For backward compatibility # %s behaves as %i but is deprecated. MESSAGE = Your disk usage has exceeded the agreed limits\ on this server|Please delete any unnecessary files on following filesystems:| # Text in the end of the mail (if not specified, default text using SUPPORT and PHONE # is created) SIGNATURE = root@localhost # Following text is used for mails about group exceeding quotas GROUP_MESSAGE = Hello, a group '%i' you're member of use too much space at %h.|\ I chose you to do the cleanup.|Delete group files on the following filesystems:| # Text in the end of the mail to the group (if not specified, default text using SUPPORT # and PHONE is created). GROUP_SIGNATURE = See you!| Your admin| # #If you are running warnquota on a mail server, and don't want bounces #because clients cannot receive mail setting this to "any" will cause #warnquota to not send them mail for all devices. If you set this to the #device name (for example /dev/hdb1) then they will not be sent mail if they #are overquota on that device only, and will be sent mail for all other #devices. #MAILDEV = # # If you are using LDAP mail lookups. # host, port, tls, binddn, and bindpw are straight forward. # LDAP_BASEDN is your search base dn # LDAP_SEARCH_ATTRIBUTE is the attr for the value you are looking for # LDAP_MAIL_ATTRIBUTE is the attribute you want used for the mail address # LDAP_DEFAULT_MAIL_DOMAIN is the default domain # if the attribute isn't found # if binddn and bindpw are blank or left out, an anonymous bind is used # # LDAP_MAIL = false # or false if you don't want to use it # If you have at least LDAP 2.3 installed, you can use LDAP_URI # LDAP_URI = ldaps://my.server:389 # Otherwise you can specify LDAP_HOST and LDAP_PORT # LDAP_HOST = ldap # LDAP_PORT = 389 # LDAP_BINDDN = uid=ReadOnlyUser,o=YourOrg # LDAP_BINDPW = YourReadOnlyUserPassword # LDAP_BASEDN = YourSearchBase # LDAP_SEARCH_ATTRIBUTE = uid # LDAP_MAIL_ATTRIBUTE = mailLocalAddress # LDAP_DEFAULT_MAIL_DOMAIN = YourDefaultMailDomain.com # # end of example warnquota.conf file # python-augeas-1.2.0/test/testroot/etc/wvdial.conf000066400000000000000000000000001451643112200220350ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/yp.conf000066400000000000000000000011111451643112200212030ustar00rootroot00000000000000# /etc/yp.conf - ypbind configuration file # Valid entries are # # domain NISDOMAIN server HOSTNAME # Use server HOSTNAME for the domain NISDOMAIN. # # domain NISDOMAIN broadcast # Use broadcast on the local net for domain NISDOMAIN # # domain NISDOMAIN slp # Query local SLP server for ypserver supporting NISDOMAIN # # ypserver HOSTNAME # Use server HOSTNAME for the local domain. The # IP-address of server must be listed in /etc/hosts. # # broadcast # If no server for the default domain is specified or # none of them is rechable, try a broadcast call to # find a server. # python-augeas-1.2.0/test/testroot/etc/yum.conf000066400000000000000000000005321451643112200213730ustar00rootroot00000000000000[main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800 installonly_limit=2 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d #exclude=xorg-x11-server*,xorg-x11-drivers*,linuxwacom,rhpxl,mesa*,xorg-x11-drv-*,kmod-nvidia-* python-augeas-1.2.0/test/testroot/etc/yum.repos.d/000077500000000000000000000000001451643112200220755ustar00rootroot00000000000000python-augeas-1.2.0/test/testroot/etc/yum.repos.d/Fedora-install-media.repo000066400000000000000000000001521451643112200267030ustar00rootroot00000000000000[InstallMedia] name=Fedora 8 mediaid=1194015916.783841 metadata_expire=-1 gpgcheck=0 cost=500 enabled = 0 python-augeas-1.2.0/test/testroot/etc/yum.repos.d/fedora-rawhide.repo000066400000000000000000000036121451643112200256470ustar00rootroot00000000000000# These packages are untested and still under development. This # repository is used for development of new releases. # # This repository can see significant daily turnover and major # functionality changes which cause unexpected problems with other # development packages. Please use these packages if you want to work # with the Fedora developers by testing these new development packages. # # fedora-test-list@redhat.com is available as a discussion forum for # testing and troubleshooting for development packages in conjunction # with new test releases. # # More information is available at http://fedoraproject.org/wiki/Testing # # Reproducible and reportable issues should be filed at # http://bugzilla.redhat.com/. # # Product: Fedora # Version: rawhide [rawhide] name=Fedora - Rawhide failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/os/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora exclude=xorg-x11-server*,xorg-x11-drivers*,linuxwacom,rhpxl,mesa*,xorg-x11-drv-* [rawhide-debuginfo] name=Fedora - Rawhide - Debug failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/debug/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-debug&arch=$basearch enabled=0 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [rawhide-source] name=Fedora - Rawhide - Source failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-source&arch=$basearch enabled=0 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora python-augeas-1.2.0/test/testroot/etc/yum.repos.d/fedora-updates-testing.repo000066400000000000000000000021771451643112200273510ustar00rootroot00000000000000[updates-testing] name=Fedora $releasever - $basearch - Test Updates failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/$basearch/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test [updates-testing-debuginfo] name=Fedora $releasever - $basearch - Test Updates Debug failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/$basearch/debug/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-debug-f$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test [updates-testing-source] name=Fedora $releasever - Test Updates Source failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-source-f$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test python-augeas-1.2.0/test/testroot/etc/yum.repos.d/fedora-updates.repo000066400000000000000000000020661451643112200256730ustar00rootroot00000000000000[updates] name=Fedora $releasever - $basearch - Updates failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [updates-debuginfo] name=Fedora $releasever - $basearch - Updates - Debug failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/debug/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [updates-source] name=Fedora $releasever - Updates Source failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora python-augeas-1.2.0/test/testroot/etc/yum.repos.d/fedora.repo000066400000000000000000000022201451643112200242200ustar00rootroot00000000000000[fedora] name=Fedora $releasever - $basearch failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY [fedora-debuginfo] name=Fedora $releasever - $basearch - Debug failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY [fedora-source] name=Fedora $releasever - Source failovermethod=priority #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY