def task_install_node_certificates(ca_cert, node_cert, node_key):
 return sequence([run('mkdir -p /etc/flocker'), run('chmod u=rwX,g=,o= /etc/flocker'), put(path='/etc/flocker/cluster.crt', content=ca_cert.getContent()), put(path='/etc/flocker/node.crt', content=node_cert.getContent()), put(path='/etc/flocker/node.key', content=node_key.getContent(), log_content_filter=_remove_private_key)])

def task_install_node_certificates ( ca_cert , node_cert , node_key ) : return sequence ( [ run ( 'mkdir -p /etc/flocker' ) , run ( 'chmod u=rwX,g=,o= /etc/flocker' ) , put ( path = '/etc/flocker/cluster.crt' , content = ca_cert . getContent ( ) ) , put ( path = '/etc/flocker/node.crt' , content = node_cert . getContent ( ) ) , put ( path = '/etc/flocker/node.key' , content = node_key . getContent ( ) , log_content_filter = _remove_private_key ) ] )
install certificates and private key required by a node .