Fix if condition on installing puppet