Add new nscd element

Provide an element that installs the nscd caching daemon.

Change-Id: Ib35d50388c7c82c6a527115fecc084969166a8fd
This commit is contained in:
Stephen Mulcahy 2014-11-25 15:24:49 +00:00
parent 7f40375cd8
commit 335ff5bd31
2 changed files with 25 additions and 0 deletions

5
elements/nscd/README.md Normal file
View File

@ -0,0 +1,5 @@
Add nscd to built images
========================
This element adds nscd to the image. The nscd daemon caches name service
lookups (including NIS+ and DNS).

20
elements/nscd/install.d/90-nscd Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
# dib-lint: disable=setpipefail
# Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
set -eux
install-packages nscd